Preview

Cse 373 Final Note

Good Essays
Open Document
Open Document
955 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Cse 373 Final Note
Big O Speed (From fastest to slowest)

O(1)
O(log n)
O(n)
O(n log n)
O(n^2)
O(n^3)
O(n^k)
O(k^n)

Full Tree: 0 or two nodes
Complete: Where all the nodes in order must be filled

TODO: Floyd’s
Binary Search Trees
An ordered or sorted binary tree, is a node based binary tree data structure that has the following properties: a. The left subtree of a node contains only nodes with keys less than that of the node’s key. b. Same with the right subtree. c. The left and right subtrees must also be binary search trees. d. There must be no duplicate nodes.

AVL Trees

AVL Balance condition:
Left and right subtrees have equal heights differing by at most 1.
Right subtrees have greater values than parent.
Left subtrees have lesser values than parent.

Single Rotation: Rotate between x and child

Double Rotation: 1. Rotate between x’s child and grandchild 2. Rotate between x and x’s new child

Heaps:
Heap of dogs. All the big dogs go to the bottom. You don’t want the small dogs to die.
For every non-root node x, the value in the parent of x is less than or equal to the value in x.
Null Path: The path length of the given node to the nearest descendant null node of the binary tree

Binary Min Heap is a complete tree.

DisjointSets

Union/Find Equivalence Equations a. Reflexive - R(a, a) for all a in s b. Symmetric - R(a, b) -> R(b, a) c. Transitive - R(a, b) -> R(a, c)

Path Compression- Every Node on the path from x to the root has its parents changed to the root.

Hashing

Open Addressing:
a. Linear Probing H(x, i) = (H(x) + i) % n
b. Quadratic Probing H(i) = (h(k) + i^2) % T
c. Double Hashing
H(i, k) = (h1(k) + ih2(k)) % T
Suggested Load Factor = Lambda = 1/2
Load Factor = The ratio of the number of records to the number of addresses within a data structure.

Graphs

DAG - A directed graph with no cycles.
Directed Graph: Graph with edges that have

You May Also Find These Documents Helpful

  • Good Essays

    Eco 372 Week 2 Assignment

    • 508 Words
    • 3 Pages

    For this week’s assignment, I am going to write about what sources of funding might be available for the start-up company called “Sun Dry Fruits”. The company will offer organic fruits, dried in the sun. The raw material will be acquired from the local farmers who are compromised on planting pesticide free fruits. The funding is for the equipment to dry the fruits, rent, promotion and utilities. From this week’s readings I have found several sources for small start-ups; however, the funding that will satisfy the needs of the company is the State and Federal loan.…

    • 508 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Between two nodes in a network there can be many connecting paths but usually shortest path is considered best. It means any information exchange between two nodes also go through all nodes appearing in shortest path. By this reason any node involved in shortest paths can have…

    • 596 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    The first network topology is hierarchical star, also known as the tree topology. This topology has different levels. The top level is the ‘root’ node; it serves as the central connection to the next level of computers. Then the second levels of computers serves as a connection to the third level of computers so on and so forth for the rest of the computers.…

    • 545 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Robert Special, the company's Chief Financial Officer has recently resigned because there are speculations against him regarding inappropriate use of accounting practices. The U.S. Securities and Exchange Commission (SEC) is investigating the issue at hand and our company's accounting practices. Based on the documents they have requested, the SEC believes the issue concerns revenue recognition. Along with this memo to management is a press release that should agree with what the company expects to be released to the public.…

    • 563 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Trees occur in various venues in computer science: decision trees in algorithms, search trees, and so on. In linguistics, one encounters trees as well, typically as parse trees, which are essentially sentence diagrams, such as those you might have had to do in primary school, breaking a natural-language sentence into its components—clauses, subclauses, nouns, verbs, adverbs, adjectives, prepositions, and so on. What might be the significance of the depth and breadth of a parse tree relative to the sentence it represents? If you need to, look up parse tree and natural language processing on the Internet to see some examples.…

    • 2006 Words
    • 7 Pages
    Good Essays
  • Better Essays

    Clt3378 Essay 2

    • 1385 Words
    • 6 Pages

    The Babylonian, Enuma Elish, and the Canaanite group of poems, Baal Cycle, are both mythological works in which a storm god battles a dragon-like monster. This war between storm gods and dragon-like monsters show readers similarities from one culture to the next. The classification in each work illustrates a specific scene in which a dragon-like monster and a storm god have a hostile encounter with one another. In Enuma Elish, Tiamat, the dragon-like creature, better known as the sea, is up against Marduk, the king who we know as the storm god. Likewise, in the Baal Cycle, Yam, who is the sea, faces Baal, another storm god. Both works show the idea that storm gods represent order, while the sea, having dragon-like features, represents chaos. In Enuma Elish, Tiamat loses the battle against Marduk while the same thing happens in the Baal Cycle with a storm god, Baal, overpowering the sea, Yam. Though these are two mythological selections that come from different cultural backgrounds, they show major similarities of the head-to-head- battle amongst a dragon-like creature facing the deep sea.…

    • 1385 Words
    • 6 Pages
    Better Essays
  • Satisfactory Essays

    MATH203 PHASE3

    • 268 Words
    • 1 Page

    The tree is not a binary tree because some nodes have more than two children. If a direct link…

    • 268 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    comm 210 notes for final

    • 583 Words
    • 3 Pages

    -quantify facts and avoid vague qualitative statements like “they receive some complaints about it sometimes ago”…

    • 583 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    I am currently a medical paraprofessional in a preschool class of three and four year olds, both typical and special needs. I see firsthand how children differ to only special needs vs. Typical but typical vs. typical and special needs vs. special needs. No matter who the child they all differ. Not only physical, but intellectually, cognitively, language, problem solving and reasoning.…

    • 159 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    GCSE Essay - The Tree

    • 478 Words
    • 2 Pages

    In the deep forest, there stands a tree beside a river. It is an ancient tree, standing tall against the sky. On its bows grow lush green leaves of thousandth generation. At its base, grey roots pile on top of one other like an old man's beard. A cicada lies on top of a root with its legs pointing uselessly at the sky.…

    • 478 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    Comm 371 Lecture Notes 6

    • 1114 Words
    • 5 Pages

    • The value of the portfolio at date 0 is X = X1 + X2 .…

    • 1114 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    I. To find if there is any root to leaf path with specified sum in a binary tree.…

    • 359 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Binary search tree: binary tree with the property that for every node X, the value of all items in its left subtree are < X and the value of all items in the right subtree are > X…

    • 1611 Words
    • 7 Pages
    Good Essays
  • Better Essays

    A red-black tree is a binary search tree with one extra attribute for each node: the color, which is either red or black.…

    • 2558 Words
    • 11 Pages
    Better Essays
  • Satisfactory Essays

    No crossing branches constraint - If X precedes Y, then X and all nodes dominated by X must precede Y and all nodes dominated by Y…

    • 392 Words
    • 2 Pages
    Satisfactory Essays

Related Topics