Giter Club home page Giter Club logo

datavisualizer-java's People

Contributors

alanefl avatar banjum avatar blondiebytes avatar c0letra1n avatar fosslgys avatar fosstester avatar zunman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

datavisualizer-java's Issues

DS Selector - Default Selection

When DS Selector opens up, it should have Stack radio button pre-selected. It appears that the behind the scene functionality is already implemented as if you hit Next without selecting anything, Stack visualization appears on the next frame. We need to explicitly make it selected for visual correctness.

s2

Lists - add(), addRandom()

List data structure code (in package ds) is currently incomplete. Provide implementation of the functions
void addRandomValues(); //adds 10 random integer values to the data structure
void add (Integer element);

Resizing "DS Visualizer" frame

Resizing the "DS Visualizer" frame does not resize the display area, which sort of beats the purpose of resizing at all! It will be a good idea to make the display area follow the size of the entire frame.

Stack - Deletion with duplicate values

If the value to be deleted (on the top of the stack) is also present inside the stack, hitting the remove button deletes the other one. For example, in the figure below, the third 54 (circled) will be deleted if Remove button is clicked. Requires investigation and fix!

p1

Stack - Inconsistent Display

For stack visualization, all values (except the top value) are misaligned. We need to push the remaining values ahead by 'n' spaces to make it align with the top value.

p2

Queue - Remove on Empty Queue

Clicking remove on an empty queue throws a Java exception, though it is not effecting the GUI. The exception either needs to be caught/handled correctly or prevented from happening.

Multiple selection

After 'list' is selected, it remains selected even if another data structure is selected later on

s1

Incorrect Image Display

The images next to the selected data structure on the frame "DS Selector" are incorrect. Currently a queue image is displayed when stack is selected, heap image when queue is selected and stack image when binary heap is selected.

s1

New Data Structures

It will be really cool if you add other data structures to the visualization, like Red Black Trees and AVL Trees.

Stack - Remove on empty stack

Clicking remove on an empty stack throws a Java exception, though it is not effecting the GUI. The exception either needs to be caught/handled correctly or prevented from happening.

Input Validation - Integer

The input fields expect an integer, however no checks are in place to ensure that. If the user enters a string the program throws an exception. Proper exception handling is required at the back end (formal or informal). And the user should be provided feedback if he/she enters invalid input.

Add Comments to Interface DataStructure

The interface currently only lists methods, without any comments on their purpose and/or intended usage. Adding comments to each method would be helpful and increase code readability and quality.

Empty Data Structure Display

Stack and Queue, when selected, have some pointers displayed in the display area even when the data structure is empty. This gives a nice visual representation of the empty data structure. Tree and Heap, however, have nothing displayed if the data structure is empty. It will be good to have a root pointer pointing to the top of the tree (and point to nothing if the data structure is empty) to have a more consistent visual representation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.