- This Eclipse repository contains a Java project that constructs a random general tree according to the requested parameters from user and saves it in a text file in JSON array format.
- It is implemented in Java 1.8 with Eclipse.
- Import the project in Eclipse and run directly.
- When you run the code, you are going to be asked to enter node count, maximum branching factor, minimum key size, and maximum key size, respectively.
- Node count corresponds to the number of nodes to be created.
- Maximum branching factor corresponds to the maximum child count that a node can have.
- Minimum and maximum key sizes are the minimum and maximum length values of the keys in each node.
- The code is not error-free, i.e., all the errors are not checked. There might be exceptions and unexpected situations during the execution. So, you may have to manipulate the source code according to your needs.
- When the tree construction is finished, it is saved in the file named "out.txt" in JSON array format.
-
Notifications
You must be signed in to change notification settings - Fork 0
mbhdra/Random-General-Tree-Generator
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
This is an Eclipse project that constructs a random general tree and saves it in JSON array format.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published