This Java application is designed to manage and manipulate the artwork database of the Cleveland Museum of Art. It supports fundamental functionalities such as adding artworks to the database, sorting artworks based on various attributes (e.g., height, price, width, name, artistName), and generating random lists of artworks. The application utilizes advanced sorting algorithms, including Merge Sort, to efficiently organize the artworks.
git clone https://github.com/hoangsonww/Sorting-Algorithms-DSA.git
. javac ArtMuseum.java Art.java
java ArtMuseum
java Tester
Or, you can simplify these steps with a Java-supported IDE such as IntelliJ IDEA!
To add artworks to the database, you’ll need to instantiate Art
objects and add them to an ArtMuseum
instance using the add
method.
You can sort the museum’s artwork database by invoking the sort
method on an ArtMuseum
instance, specifying the attribute to sort by (e.g., height
, price
, width
, name
, artistName
) and the direction of the sort (positive
for ascending, negative
for descending).
Invoke the randomizeArts
method on an ArtMuseum
instance, specifying the number of random artworks to generate.
Use the findArts
method to retrieve all artworks by a specific artist from the museum’s database.
Contributions to the project are welcome. Please fork the repository, make your changes, and submit a pull request with a detailed description of your additions or changes.
Created with ❤️ by Son Nguyen in 2023.