![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CGI , Perl and Trees | Dabheeruz | Shell Programming and Scripting | 1 | 04-28-2009 09:34 PM |
| Best way to diff two huge directory trees | same1290 | Shell Programming and Scripting | 6 | 08-18-2008 06:34 PM |
| Protecting directory trees with gpgdir | iBot | UNIX and Linux RSS News | 0 | 04-24-2008 12:50 PM |
| Easy Trees with Oracle and PHP | iBot | Oracle Updates (RSS) | 0 | 04-06-2008 06:10 AM |
| See How Trees, Flowers and Grass Grow in Silence | iBot | Complex Event Processing RSS News | 0 | 12-23-2007 05:50 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
2-4 trees in C
i am trying to write a program in order to learn how to work with trees and especially 2-4 trees.
the general idea is that each node is represented by 4 cells and 5 pointers? (maybe 2 arrays then? ) let's suppose that we insert simply int numbers in all cells. firstly we initialize the root (==null ? ) then we fill up all 4 cells of the first node and we must have its 4 int numbers in numerical order?and what happens when we want to insert a 5th element? of course i don't expect every question answered(as there is only 1 total answer i suppose) but a brief explanation would really help.maybe a link to a tutorial would also be very helpful. //important: how can i separate internal nodes from leaf nodes?let's suppose that each pointer in the leaf level must point to another array(one level lower that is)which may contain also 4 cells with another type(int or char * etc)...how can i write and create this separation?maybe two structs or can i do that with just one struct and flag variables? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|