Skip to content

This repository contains Java implementations of fundamental data structures and algorithms, completed as part of a university assignment.

Notifications You must be signed in to change notification settings

sean-j-mcbride/Java-Data_Structures_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Data Structures & Algorithms Implementations

This repository contains Java implementations of fundamental data structures and algorithms, completed as part of a university assignment.

Implementations

1. Dynamic Set (using a BST)

A custom implementation of a dynamic set that supports the following operations

  • ADD
  • REMOVE
  • UNION
  • INTERSECTION
  • DIFFERENCE
  • SUBSET

2. Minimum Cost to Connect Ropes

Solves the "minimum cost to connect ropes" problem by combining the two shortest ropes at each step. This is implemented using a custom Min-Priority Queue built from a doubly linked list.


How to Run

  1. Compile the Java files:

    javac *.java

  2. Run the desired part:

    • To run the Dynamic Set demonstration: java DynamicSet

    • To run the Minimum Cost to Connect Ropes algorithm: java MinConnectRopes


Technologies Used

  • Java

About

This repository contains Java implementations of fundamental data structures and algorithms, completed as part of a university assignment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages