Thread: Binary Search Tree for student records

  1. #1
    Registered User
    Join Date
    Dec 2017
    Posts
    1

    Binary Search Tree for student records

    I'm quite confused on how create a binary tree with multiple types of data.

    Does anyone have any website recommendations?

    Thanks

  2. #2
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,738
    You simply need to decide how the data should be sorted. For example, by name, class or id. You can also take into account multiple members, for example prioritize class but also consider name and id, generating a sorting of this likeness:
    Code:
    Not sorted:
    1234 Albert 1b
    1236 Nick 1c
    1235 John 2a
    1354 Bob 1b
    1198 Alfred 1c
    1024 Jim 2a
    
    Sorted:
    1234 Albert 1b
    1354 Bob 1b
    1198 Alfred 1c
    1236 Nick 1c
    1024 Jim 2a
    1235 John 2a
    Devoted my life to programming...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Student Records Using Binary Search Tree
    By ThR1LL in forum C Programming
    Replies: 2
    Last Post: 05-15-2014, 03:32 PM
  2. implementing a student database using a binary tree
    By atchy6 in forum C Programming
    Replies: 1
    Last Post: 05-02-2012, 08:44 AM
  3. Replies: 0
    Last Post: 11-04-2006, 11:07 AM
  4. A Binary Search Tree of... Binary Search Trees...
    By SlyMaelstrom in forum C++ Programming
    Replies: 5
    Last Post: 12-10-2005, 02:12 PM
  5. read records fron file into a binary tree
    By Kirsten in forum C Programming
    Replies: 1
    Last Post: 04-23-2002, 02:48 PM

Tags for this Thread