Preview

Binary Search Tree Investigation

Powerful Essays
Open Document
Open Document
2024 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Binary Search Tree Investigation
Welcome to my commentary about trees.
I will try to make this as insightful as possible, due to my interest in both the area of data structures in Mathematics and Computer Science.

The reason why we use trees in mathematics is for organizing data into a structured manner and to link each of the pieces of data (from now on referred to as Objects), together.

The advantage of using a tree structure is due to it’s ability of holding continuous real-world data, which can be added and deleted at any time.

In other words, strictly for scientific purposes, trees are ideal manners of organizing data in a sequential, structured manner, and at the same time allowing for the structure to grow and shrink in real-time.

There are four required steps/procedures to be taken before the “tree” can work as an efficient representation of a certain data structure:

Step One: data must be “sorted” in a certain manner.
This means, that the data may be sorted in degree of polynomials, by the number of their significant figures (floating point calculations), in order of ascending or descending numerical value (from lowest to highest or reverse order), and other.

In computer science, a strict algorithm is used as a means of maintaining the efficiency of the data structure (i.e. if it contains continuous data or any form of decimal number set where “precision matters” we want the precision of the numbers to be kept as they are once they are sorted.

Therefore, the binary search is implemented.

Function of the binary search:
1)
Considering that the structure is already sorted (if not we need to do so)the goal of the binary search is to find a location within the “tree” called the key, and ensure, that there is space for it if something were to be overwritten on it.
The binary search functions by looking through the whole length of the data structure (it finds the range between the maximum and minimum, as well as the average between the highest and lowest values and

You May Also Find These Documents Helpful

  • Good Essays

    Cse 373 Final Note

    • 955 Words
    • 4 Pages

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

    • 955 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    Comp230-Intro to Scripting

    • 12553 Words
    • 51 Pages

    ________ data items may involve organizing them, checking them for accuracy, or performing mathematical operations on them.…

    • 12553 Words
    • 51 Pages
    Powerful Essays
  • Satisfactory Essays

    CS 220 – Programming w/ Data Structures: You have missed one assignment and one quiz. Your instructor has extended your assignment due date to this Sunday, April 10. Your instructor has also let you to take your Quiz # 2 during his office hours during this week. Let me know if you need additional support to study for this quiz. Your grade to date in this class is 30.2/37 81.62% B.…

    • 354 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    ch02 c

    • 2468 Words
    • 11 Pages

    9. The term “data structures” refers to the speed at which data it is captured, analyzed, and reported.…

    • 2468 Words
    • 11 Pages
    Powerful Essays
  • Satisfactory Essays

    Cs Programming Chapter 1

    • 2450 Words
    • 10 Pages

    ____ data items may involve organizing or sorting them, checking them for accuracy, or performing calculations with them.…

    • 2450 Words
    • 10 Pages
    Satisfactory Essays
  • Satisfactory Essays

    03

    • 4187 Words
    • 33 Pages

    A BFILE column stores a file locator to a binary file stored by the operating system.…

    • 4187 Words
    • 33 Pages
    Satisfactory Essays
  • Good Essays

    3. The database scheme: the specifications of the logical structure of the data stored in the database.…

    • 688 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Matlab vs Excel

    • 1013 Words
    • 5 Pages

    * It uses matrix based algorithms hence each element or data values are treated in an m row by n column, such that a single integer is considered a matrix of one row and one column.…

    • 1013 Words
    • 5 Pages
    Good Essays
  • Good Essays

    ArrayList

    • 801 Words
    • 4 Pages

    Searches a range of elements in the sorted ArrayList for an element using the specified comparer and returns the zero-based index of the element.…

    • 801 Words
    • 4 Pages
    Good Essays
  • Better Essays

    The hierarchical database is one of the oldest types of database models. It is structured with parent/child relationships, where one parent category of data can have many children categories of data but any child category of data can only have one parent (Hsiao, 1992). Stephens (2009) also describes this as one-to-many relationships. The parent and child categories are known as segments and within each segment the data is categorized into fields (Hsiao, 1992). Since the different categories of data in the parent/child relationship are already structured along a hierarchical path, those relationships are joined implicitly.…

    • 1249 Words
    • 5 Pages
    Better Essays
  • Good Essays

    Assume the maximum height of the tree is H (m) and at time t (year) the height is h(m).…

    • 488 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    data structures

    • 1321 Words
    • 6 Pages

    So far, to find something in a tree, or in a list, we have searched. However, there is another technique called hashing. Assume we are looking for some element e in a set S, where S may be implemented as a vector. We apply some function to e, hash (e), and this delivers the position of e in S, and we can then go directly to that location to get e or information on e. For example, e might be the key to a record, such as someone's name, and we wish to extract details/info on that person. e might be a telephone number and we want to know address, or e might be address and we want telephone number.…

    • 1321 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    Tree Balancing

    • 3117 Words
    • 389 Pages

    At every node, L < C ≤ R – At every node, we always know whether to conGnue searching in the leW or right subtree – If we conGnue searching in the leW subtree, all nodes in the right subtree can be ignored H E B A CX1007 Data Structures 2013/14 S2 C L F C R G J I M K D 3 Recall: Efficient search with BSTs • Search is efficient because we traverse one external path • # operaGons is proporGonal to path length • Try to keep path length low H > D H – Ie, try to keep tree balanced E E > D B…

    • 3117 Words
    • 389 Pages
    Satisfactory Essays
  • Better Essays

    The hierarchical data model organizes data in a tree structure. There is a hierarchy of parent and child data segments. This structure implies that a record can have repeating information, generally in the child data segments. Data in a series of records, which have a set of field values attached to it. It collects all the instances of a specific record together as a record type. These record types are the equivalent of tables in the relational model, and with the individual records being the equivalent of rows. To create links between these record types, the hierarchical model uses Parent Child Relationships. These are a 1:N mapping between record types. This is done by using trees, like set theory used in the relational model, "borrowed" from maths. For example, an organization might store information about an employee, such as name, employee number, department, salary. The organization might also store information about an…

    • 1673 Words
    • 7 Pages
    Better Essays
  • Good Essays

    Minimum Spanning Trees

    • 466 Words
    • 2 Pages

    The most important characteristic of the minimum spanning tree is their possibility of multiplicity. These trees can be easily multiplied into more number of trees and thus help in the expansion of the dataset and the operations that can be performed on the same. These trees can also be made completely unique in terms of their structure and their weights. If the weights of the nodes in the tree are not changed then it is possible to keep the spanning trees completely unique in nature. The minimum spanning trees can also exhibit special cyclical properties wherein one can use a round loop for moving from one node to another. Such design and the ability to modify the trees help in making use of them for newer and additional places and applications. The edges of these trees can also be cut to give them new shapes or new forms.…

    • 466 Words
    • 2 Pages
    Good Essays