Skip to content

This is an Eclipse project that constructs a random general tree and saves it in JSON array format.

Notifications You must be signed in to change notification settings

mbhdra/Random-General-Tree-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Random-General-Tree-Generator

  • 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.

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

No packages published

Languages