Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Storing Binary Tree Data

Storing Binary Tree Data

Scheduled Pinned Locked Moved Database
databasedata-structuresquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nitin3
    wrote on last edited by
    #1

    Hi, I want to make a database for an mlm project (binary tree). I'm confused to choose data storing model. I've got two option "adjacency list model" and "Modified Preorder Tree Traversal". Which one is better for this kind of project ?:confused: My project may contain a large amount of records. Please suggest better model for my project.

    Thanks & Regards

    P P 2 Replies Last reply
    0
    • N nitin3

      Hi, I want to make a database for an mlm project (binary tree). I'm confused to choose data storing model. I've got two option "adjacency list model" and "Modified Preorder Tree Traversal". Which one is better for this kind of project ?:confused: My project may contain a large amount of records. Please suggest better model for my project.

      Thanks & Regards

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      I suspect you're over-thinking the problem.

      N 1 Reply Last reply
      0
      • P PIEBALDconsult

        I suspect you're over-thinking the problem.

        N Offline
        N Offline
        nitin3
        wrote on last edited by
        #3

        sorry ?

        Thanks & Regards

        1 Reply Last reply
        0
        • N nitin3

          Hi, I want to make a database for an mlm project (binary tree). I'm confused to choose data storing model. I've got two option "adjacency list model" and "Modified Preorder Tree Traversal". Which one is better for this kind of project ?:confused: My project may contain a large amount of records. Please suggest better model for my project.

          Thanks & Regards

          P Offline
          P Offline
          Prasanta_Prince
          wrote on last edited by
          #4

          I have develop 3 binary tree related package. ( MLM and Microfinance). Just try to put Parent Id and thats enough to proceeds.. And if u have left right combination is there then put Position with varchar. which ontain Only R or L ( for left or Right.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups