Results 1 to 5 of 5

Thread: Binary Tree??

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2002
    Location
    SE England
    Posts
    732

    Binary Tree??

    Can someone explain to me what a binary tree is, where, why and how I would use one??
    Leather Face is comin...


    MCSD

  2. #2
    Fanatic Member BrianHawley's Avatar
    Join Date
    Aug 2001
    Location
    Saudi Arabia
    Posts
    796
    Its a structure where each item in the structure has two children.

    Each item can hold a value, perhaps a string or number, and each value has not more than two values under it.

    They are used mainly in sorting/indexing and are not something you would normally use in everyday vb6 programming. They are more associated with low level C++ programming, where you are doing somthing like sorting or indexing a lot of random data.

    By storing the data in a tree, instead of in a linear format, it is faster to find things. You just go down the branches of the tree, branching off in the right direction until you find what you want. This is faster than going through a file from one end to the other.


    http://www.cs.jhu.edu/~goodrich/dsa/trees/btree.html

    is an animated binary tree (written in java I guess) that shows the concept quite well.
    Last edited by BrianHawley; Feb 21st, 2002 at 08:04 AM.
    Brian
    (Fighting with the RightToLeft bugs in VS 2005)

  3. #3
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670
    'Buzby'
    Visual Basic Developer
    "I'm moving to Theory. Everything works there."

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

  5. #5
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192

    Talking Also...

    You could also check a Binary Tree in a program, here I add it.
    Attached Files Attached Files
    We miss you, friend... Rest in Peace, we will take care of the rest of it.

    [vbcode]
    On Error Me.Fault = False
    [/vbcode]
    - Silence is the human way to share ignorance
    Tec-Nico

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width