Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Length parameter ignored for AVL-Tree and Binary Search Tree #3

Open
ercksen opened this issue Feb 6, 2024 · 0 comments
Open

Length parameter ignored for AVL-Tree and Binary Search Tree #3

ercksen opened this issue Feb 6, 2024 · 0 comments

Comments

@ercksen
Copy link

ercksen commented Feb 6, 2024

The flag for the number of operations used to construct AVL trees or binary search trees (-l) seems to be ignored. The actual number of operations used is always random, even though the task descriptions state:

The flag -l specifies how many operations should be performed on the tree for generated instances

Steps to reproduce in a bash (commands output the number of actual operations generated):

For AVL-Tree:

java -jar exercisegenerator.jar -a avltree -l 6 -t /dev/null | grep '\\item' | wc -l

For Binary Search Tree:

java -jar exercisegenerator.jar -a binsearchtree -l 6 -t /dev/null | grep '\\item' | wc -l

Expected output: 6
Actual output: Random

Furthermore, it can happen that no operations are generated at all, e.g. the commands output 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant