Board index » delphi » BINARY TREES .. Help
David
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
David
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
BINARY TREES .. Help
Hello All,
I am a student learning pascal and I would like to ask whether anyone can Thanking you all in advance, David. |
Steven J. Morale
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:BINARY TREES .. HelpQuoteDavid wrote in message <374bc4b...@xenon.melitacable.com>... recruiting more people. The main person is the big chief who starts it all. He made need some help so he recruits a couple of people to do a task. "Mr A.," he states," I want you to hand all the applicants that start with the letter 'A' to the letter 'M.'" "Mr Z., I want you to handle the rest of them." Mr A. sets out to do his duties and finds he is overworked and decides to go out and find some more people to help him. He finds Mr B. and Mr C. Mr B. has a degree in finding names from "A" to "F" and sets out to do that. Mr C. handles the rest. The big chief sees that he has a new applicant and it fits in the "J" catagory and hands it off to Mr A for processing. Mr A. thenpasses it off to Mr C. and it get processed. Papers get passed around all day in this manner and eventually the head chief thanks Mr A for doing such a fine job, but of course he does not know that the workload was split up. They each only know who it goes to next, they don't need to tell the person before them where the papers are going as long as the job gets done. --- For a singly linked list, think of it as central person sending a letter A double linked list is basically like a letter, but this time it gets A Circular linked list is basically what it says, if you followed the linked Hope this helps... |
Clif Pen
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:BINARY TREES .. HelpQuoteDavid wrote in message <374bc4b...@xenon.melitacable.com>... Program BinarySort; USES CRT; CONST MaxNodes = 1000; {for demo purposes} TYPE Procedure InsertNum(VAR tree:bPtr; j:Integer); Procedure PrintTree(tree:bPtr); Begin |