Skip to content
Vibhrav Jha.Let’s talk
All projectsFullstack

i-Songly

Ordered music queries backed by tree-based indexing

My contributionTree-based song-query implementation within the course project.

FieldFullstack

View repository

Academic project

i-Songly: Song Management Engine project image

The work
behind the interface.

Enabled ordered song search and energy-range filtering through a layered Java application backed by a self-balancing red-black tree.

  • Java
  • red-black trees
  • comparators
  • CLI

The result

Insertion, ordered search and energy-range queries over a song catalogue.

The problem

Implemented ordered song storage and filtering behind a command-line interface.

A decision worth examining

Separate the CLI, query logic and self-balancing tree through object-oriented interfaces.

Read the README.

View original README
READMEArchitecture, setup and usage

i-Songly: An Interactive Song Management App

i-Songly is a command-line application designed to manage and explore a collection of songs efficiently. It enables users to load songs from a file, filter them by attributes like energy and danceability, and retrieve the top recent tracks. The app is built with modular design principles, leveraging advanced data structures and algorithms to ensure scalability and performance.

Features

  • Load Songs: Import a song database from a CSV file.
  • Filter by Danceability: Apply a filter to display songs matching a specified danceability threshold.
  • Retrieve Songs by Energy Range: Find songs that fall within a specified range of energy levels.
  • Top 5 Recent Songs: Display the five most recent songs in the collection.
  • Interactive Command-Line Interface: User-friendly CLI for seamless interaction.

System Architecture

The application is divided into three main components:

  1. Frontend: Provides the user interface, accepts commands, and interacts with the backend.
  2. Backend: Manages the song data, processes user queries, and applies filters.
  3. Data Structures: Organizes song data efficiently for fast access and updates.

Data Structures and Algorithms Used

  1. Binary Search Tree (BST):

    • The core data structure used to store songs in an ordered manner.
    • Supports efficient insertion and retrieval operations based on song attributes.
  2. Red-Black Tree (RBT):

    • A self-balancing binary search tree variant.
    • Ensures logarithmic time complexity for insertion, deletion, and search operations.
    • Provides robust performance for managing large datasets.
  3. Iterable Sorted Collection:

    • An abstraction built over the BST/RBT to enable iteration over songs in a sorted order.
    • Facilitates operations like finding ranges of songs by energy.
  4. Custom Comparator:

    • Implements domain-specific ordering logic for sorting songs based on their attributes, like energy and danceability.
  5. Selection Sort:

    • Used in specific scenarios for fine-tuning the order of songs based on additional criteria.

Key Algorithms

  • Filtering: The setFilter method applies a danceability threshold to restrict the results to songs meeting the criteria.
  • Range Query: Retrieves songs with energy levels within a user-defined range, utilizing tree traversal for efficiency.
  • Top 5 Recent: Leverages the ordered structure of the tree to quickly fetch the latest entries.

How It Works

  1. Loading Songs: Songs are loaded from a CSV file and inserted into the Red-Black Tree. The tree ensures the data remains sorted and accessible.
  2. Querying: Users specify energy ranges or filters, and the backend retrieves matching results by traversing the tree.
  3. Sorting and Displaying: Songs are sorted based on user preferences or filters before being displayed.

File Overview

  • Frontend.java: Handles user interactions and displays results.
  • Backend.java: Implements the core logic for loading data, filtering, and retrieving songs.
  • BinarySearchTree.java and RedBlackTree.java: Core data structures for storing and managing song data.
  • Song.java and SongCompare.java: Represent song objects and define comparison logic.
  • TextUITester.java: Includes test cases for verifying app functionality.
  • Other Support Files: Interfaces and placeholders ensure modularity and extensibility.

Usage Instructions

  1. Compile the project using javac:

    javac *.java
    
  2. Run the application:

    java App
    
  3. Follow the on-screen instructions to load songs, apply filters, and explore the collection.

Future Enhancements

  • GUI support for a more interactive user experience.
  • Enhanced sorting and filtering options.
  • Integration with external song databases for live data.

Contributors

  • Vibhrav: Development and design of the app.
  • Collaborators: None

CIFAR-100 with LeNet

  1. Aranyaka wildlife-image application interface

    Fullstack

    Aranyaka

  2. DermaNet hackathon prototype showing classification output and a generated explanation

    ML & AI

    DermaNet

  3. AI-generated concept illustration of source documents connected to retrieved evidence and an answer

    ML & AI

    Private-Data RAG

  4. Before It Breaks dashboard separating real weather from synthetic equipment telemetry and estimated costs

    ML & AI

    Before It Breaks

  5. Architecture diagram of simulated stock records flowing through Kafka to HDFS

    Distributed Systems

    Stock Streaming Engine

  6. Vyaya dashboard with clearly labeled synthetic demonstration data

    Fullstack

    Vyaya

  7. Study assistant interface with retrieved source context

    ML & AI

    Fine-Tuning vs. RAG

  8. Architecture diagram of NOAA data, a Cassandra cluster and a query service

    Distributed Systems

    Distributed Weather Data System

  9. Distributed Property Lookup Service project image

    Distributed Systems

    Distributed Property Lookup Service

  10. Architecture diagram connecting MySQL, a gRPC service and HDFS storage

    Distributed Systems

    HDFS & SQL Pipeline

  11. Architecture diagram of Spark processing, SQL and analysis

    Distributed Systems

    Spark Analytics

  12. Multi-Source ELT Pipeline project image

    Data Engineering

    Multi-Source ELT Pipeline

  13. Wisconsin schools in their geographic context — explanatory architecture diagram

    Data Engineering

    GCP Geospatial Pipeline

  14. Chinook Music Store SQL Analytics project image

    Data Engineering

    Chinook Music Store SQL Analytics

  15. Yelp Geospatial Analytics project image

    Data Engineering

    Yelp Geospatial Analytics

  16. E-Commerce Semantic Search Engine project image

    Data Engineering

    E-Commerce Semantic Search Engine

  17. Retail Sales Forecasting project image

    ML & AI

    Retail Sales Forecasting

  18. Making tool dependencies inspectable — explanatory architecture diagram

    ML & AI

    AI Agent Tool Dependency Graph

  19. From public records to operational questions — explanatory architecture diagram

    Data Engineering

    Palantir Foundry and AIP Build Challenge

  20. StudyFlow study-session dashboard

    Fullstack

    StudyFlow

  21. Habit Command Center planning dashboard

    Fullstack

    Habit Command Center

  22. Interfaces across web and mobile — explanatory architecture diagram

    Fullstack

    React Web & Mobile

  23. Startup Scout project image

    Fullstack

    Startup Scout

  24. Inventory-Based Recipe Planner project image

    Fullstack

    Inventory-Based Recipe Planner

  25. Concurrent Word Count and Performance Benchmarking project image

    Data Engineering

    Concurrent Word Count

  26. Data structures matched to their assumptions — explanatory architecture diagram

    Computing Foundations

    Algorithm Design

  27. Campus Navigator project image

    Fullstack

    Campus Navigator

  28. i-Songly: Song Management Engine project image

    FullstackViewing

    i-Songly

  29. An experiment that can resume — explanatory architecture diagram

    ML & AI

    CIFAR-100 with LeNet

  30. Fashion-MNIST Neural Network Classifier project image

    ML & AI

    Fashion-MNIST Classifier

  31. PCA Eigenfaces and Image Reconstruction project image

    ML & AI

    PCA Eigenfaces

  32. Two routes to the same regression objective — explanatory architecture diagram

    ML & AI

    Lake Mendota Ice Regression

  33. Bayesian Language Detection project image

    ML & AI

    Bayesian Language Detection

  34. Explanatory diagram of the video-fingerprint benchmark: 25 sources, 75 transformed variants and 1,875 comparisons.

    ML & AI

    Video-Fingerprint Benchmark

All projects