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

    An ordered or sorted binary tree, is a node based binary tree data structure that has the following properties:…

    • 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
  • 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
  • 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
  • Satisfactory Essays

    Effective communication is essential in building a meaningful relationship between the resident and the carer as it can help build trust and respect. Effective communication is fundamental in regards to the resident’s needs and preferences and to ensure they are met. Effective communication can get positive results.…

    • 676 Words
    • 3 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

    In the age of the dixie south, an overwhelming portion of the nation did not have access to education. Entire towns lacked a school of the most basic standards, leaving the majority of the south uneducated. In the novel Adventures of Huckleberry Finn, Twain uses the idea of being “civilized” to expose the hypocrisy of those whom are educated and “high class” in south. Through portraying the most “civilized” characters in the story as inherently violent, swindlers, or liers, the connotation with a background of education becomes evil.…

    • 1045 Words
    • 5 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
  • 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
  • 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
  • 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
  • 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