AVL Tree

T

thefed

Hello!

I have a quick question about the AVL tree. Isn't this a lot like the
Rope quiz? When I wrote my Rope entry, I made it into a self-
balancing tree like this (although I forsaked all heap properties).

Hmm. Maybe I need to rewrite my Rope entry.

~ Ari
English is like a pseudo-random number generator - there are a
bajillion rules to it, but nobody cares.
 
R

Robert Dober

Hello!

I have a quick question about the AVL tree. Isn't this a lot like the
Rope quiz? When I wrote my Rope entry, I made it into a self-
balancing tree like this (although I forsaked all heap properties).
I have seen the solutions using AVL tree balancing for ropes but I
guess that the *original* balancing algorithm is better adapted to
most applications of Ropes. But I wonder too.
Hmm. Maybe I need to rewrite my Rope entry.
I still need to write my entry....
R.
 
J

James Gray

I have a quick question about the AVL tree. Isn't this a lot like
the Rope quiz? When I wrote my Rope entry, I made it into a self-
balancing tree like this (although I forsaked all heap properties).

Some people did use AVL balancing in their ropes, but I consider the
binary tree to be a more general data structure.

Beyond that, this quiz is far more about the build strategy than the
task itself.

James Edward Gray II
 
R

Rick DeNatale

Some people did use AVL balancing in their ropes, but I consider the
binary tree to be a more general data structure.

Beyond that, this quiz is far more about the build strategy than the
task itself.


I hope this is taken the right way, but as I think of this quiz, I'm
afraid that picking a particular data structure/algorithm like an AVL
tree isn't the best way to do that.

The ping-pong programming comes out of test driven design, which is a
way to derive a design iteratively by refining external requirements.

In this quiz, we have the goal of implementing a particular algorithm,
which isn't realy the same thing at all.

A more general task, such as building a lookup tree, or a balanced
lookup tree would probably explore the build strategy better, perhaps
with the quizmaster stepping in at times to introduce one or more new
requirements, but it's too late for that.

Just my opinion.
 
J

James Gray

I hope this is taken the right way, but as I think of this quiz, I'm
afraid that picking a particular data structure/algorithm like an AVL
tree isn't the best way to do that.

I'm sure I make plenty of mistakes. This could be one of them.

However, when there are no submissions, you're stuck with my ideas for
better and worse. I like to try new things from time to time.

I also don't see anything wrong with TDDing an algorithm. Besides
that, there should be a heck of a lot more interface work than there
is AVL rotations in our tree library.

James Edward Gray II
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

pls advise on AVL tree 1
generating key for AVL tree 0
avl tree 3
Clearing the RAM 7
AVL tree without malloc in C 29
SCP Ruby 2
Alternate Regular Expressions? 25
Polymorphic Code 31

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top