Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
bst
#1
Are we allowed a node structure within bst?
Reply
#2
(09-13-2017, 03:21 PM)smmitchell2 Wrote: Are we allowed a node structure within bst?

I think so, but it should be private.
Reply
#3
(09-13-2017, 03:21 PM)smmitchell2 Wrote: Are we allowed a node structure within bst?

Actually, Dr. Lust already declares a BST structure in the header file he had posted: http://beastie.cs.ua.edu/cs201/assign-bst.html. For the purposes of this project, you can probably define everything you need inside that structure.
Reply
#4
Yea but most BST structures have a node as the root. It will be much easier to have a node structure then to build everything within the BST structure.
Reply
#5
(09-14-2017, 01:08 PM)smmitchell2 Wrote: Yea but most BST structures have a node as the root. It will be much easier to have a node structure then to build everything within the BST structure.

Yeah, I actually realized that when I started coding after making that post--implementing another struct is better.
Reply


Forum Jump:


Users browsing this thread: elyssekimmel, jaw653, 1 Guest(s)