+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 10 of 12

Thread: plz help me out to create binary tree

  1. #1
    Newbie kuki is an unknown quantity at this point
    Join Date
    Mar 2009
    Posts
    5

    plz help me out to create binary tree

    plz help me out to create binary tree that fetches data from database in php code
    plz anyone give me logic

  2. #2
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    36
    Posts
    11,698
    Blog Entries
    57

    Re: plz help me out to create binary tree

    Moved to the correct forum.

    You will probably need to provide a few more details, since you are talking about a non-trivial activity.
    CodeCall Blog | CodeCall Wiki | Shareware
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  3. #3
    Co-Administrator John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John's Avatar
    Join Date
    Jul 2006
    Age
    21
    Posts
    5,885
    Blog Entries
    25

    Re: plz help me out to create binary tree

    Quote Originally Posted by WingedPanther View Post
    Moved to the correct forum.

    You will probably need to provide a few more details, since you are talking about a non-trivial activity.
    How is your binary/avl tree tutorial going?

  4. #4
    Newbie kuki is an unknown quantity at this point
    Join Date
    Mar 2009
    Posts
    5

    Re: plz help me out to create binary tree

    i want to create the binary tree that fetches data from database
    i'm working on multilevel marketing project.
    i want to create binary tree that shows sponser and admin

  5. #5
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    36
    Posts
    11,698
    Blog Entries
    57

    Re: plz help me out to create binary tree

    Quote Originally Posted by John View Post
    How is your binary/avl tree tutorial going?
    I might finish that today.

    Quote Originally Posted by kuki View Post
    i want to create the binary tree that fetches data from database
    i'm working on multilevel marketing project.
    i want to create binary tree that shows sponser and admin
    A binary tree is a data storage object. It doesn't "fetch data", it "stores data". it sounds like you heard a buzz word and don't know what it is or when it is helpful. I would just use standard SQL and let the database handle storing your data. Also, a binary tree doesn't "show data". You need something else for that, like a table.
    CodeCall Blog | CodeCall Wiki | Shareware
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  6. #6
    Co-Administrator John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John is a glorious beacon of light John's Avatar
    Join Date
    Jul 2006
    Age
    21
    Posts
    5,885
    Blog Entries
    25

    Re: plz help me out to create binary tree

    I believe most databases implement a b-tree structure.

  7. #7
    Newbie kuki is an unknown quantity at this point
    Join Date
    Mar 2009
    Posts
    5

    Re: plz help me out to create binary tree

    actualy i'm working on multilevel marketing project. for that there are one root/admin and othes are affilates .so for that admin doesnt have more than one leg, leg must be right, left. and subordinate leg is also restricted to left and right. for that i want to show the subordinate name and id and generation of commision on complition of level. so i want to i that how should i fire the querry, and where ?

  8. #8
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    36
    Posts
    11,698
    Blog Entries
    57

    Re: plz help me out to create binary tree

    I suspect you are working on a homework assignment, as what you are saying makes no sense outside of that context. A properly designed database will handle all this for you. What are you ACTUALLY trying to accomplish? Without knowing the details you are constrained by, we can't guide you.
    CodeCall Blog | CodeCall Wiki | Shareware
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  9. #9
    Newbie kuki is an unknown quantity at this point
    Join Date
    Mar 2009
    Posts
    5

    Re: plz help me out to create binary tree

    sarika wrote:

    i m making an MLM site in which a member can have two members under
    himself,One member on left side and another on right side. Just like
    binary tree . Now i want to trasverse through the tree using php and
    mysql so that i can show the binary tree created this to user. Pls
    suggested me best possible way to do it. Simply using sql queries
    without joins and functions is very tedious and time consuming . so
    plz suggest me shortest possible script which takes less execution
    time.

  10. #10
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    36
    Posts
    11,698
    Blog Entries
    57

    Re: plz help me out to create binary tree

    Do you know how this data will be stored in the database? You still need to read the data from the database into the tree.
    CodeCall Blog | CodeCall Wiki | Shareware
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

+ Reply to Thread
Page 1 of 2
1 2 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Computer Theory: Signed Integers
    By John in forum Tutorials
    Replies: 3
    Last Post: 11-30-2008, 09:00 AM
  2. need help with simple C++ TicTacToe game with AI
    By flupke1 in forum C and C++
    Replies: 11
    Last Post: 08-14-2007, 10:27 AM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

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