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. General Programming
  3. C#
  4. binary trees and traverse

binary trees and traverse

Scheduled Pinned Locked Moved C#
helpquestion
5 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
    nesfrank
    wrote on last edited by
    #1

    hi, do we have any class or library that support the binary trees data structures. what about three ways of traversing. I searched google but I am not convinced based on search result. can someone help me please?

    P A 2 Replies Last reply
    0
    • N nesfrank

      hi, do we have any class or library that support the binary trees data structures. what about three ways of traversing. I searched google but I am not convinced based on search result. can someone help me please?

      P Offline
      P Offline
      Pedram Behroozi
      wrote on last edited by
      #2

      nesfrank wrote:

      do we have any class or library that support the binary trees data structures

      I don't think so. but here's my first result in googling "Binary Tree C#": http://www.codeproject.com/KB/recipes/BinarySearchTree.aspx[^]

      Life is 5: 3 me, 1 you.

      1 Reply Last reply
      0
      • N nesfrank

        hi, do we have any class or library that support the binary trees data structures. what about three ways of traversing. I searched google but I am not convinced based on search result. can someone help me please?

        A Offline
        A Offline
        Alan Balkany
        wrote on last edited by
        #3

        You can find the three basic ways of searching a binary tree in most introductory books on data structures. They are: preorder, inorder, and postorder. Your instructor probably covered these in a lecture.

        N 1 Reply Last reply
        0
        • A Alan Balkany

          You can find the three basic ways of searching a binary tree in most introductory books on data structures. They are: preorder, inorder, and postorder. Your instructor probably covered these in a lecture.

          N Offline
          N Offline
          nesfrank
          wrote on last edited by
          #4

          he did covbered in lectures in c language but I do assignment in Csharp sp to make the assignment I need to have already a class that stores the data in a binary tree fashion. do we have any built in or already written class by others. yes, Once I have that I can write a recirsive routine to do the type of traverses u mentioned above.

          A 1 Reply Last reply
          0
          • N nesfrank

            he did covbered in lectures in c language but I do assignment in Csharp sp to make the assignment I need to have already a class that stores the data in a binary tree fashion. do we have any built in or already written class by others. yes, Once I have that I can write a recirsive routine to do the type of traverses u mentioned above.

            A Offline
            A Offline
            Alan Balkany
            wrote on last edited by
            #5

            You need to understand the algorithm to store data in a binary tree. It's not hard. Once you understand this, you can write the code yourself.

            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