J
Jeremy Gailor
I'm currently just playing around with some AI stuff (working with
breadth-first, depth-first searches (irrelevant)), but I'm writing a
binary tree using the generics just to get a feel for them. I can't
however implement the tree because I can't use the '<' or '>' to compare
values for insertion into the tree. I don't know if there is a
BinaryTree already provided as a generic in the .Net framework (seems
like it would violate the rules I'm working with now), but can anyone
suggest a solution for this? I would prefer to be able to leave it as a
generic, rather than using 'object' 's to avoid boxing/unboxing
operations on value types.
Thanks in advance
breadth-first, depth-first searches (irrelevant)), but I'm writing a
binary tree using the generics just to get a feel for them. I can't
however implement the tree because I can't use the '<' or '>' to compare
values for insertion into the tree. I don't know if there is a
BinaryTree already provided as a generic in the .Net framework (seems
like it would violate the rules I'm working with now), but can anyone
suggest a solution for this? I would prefer to be able to leave it as a
generic, rather than using 'object' 's to avoid boxing/unboxing
operations on value types.
Thanks in advance