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

Campus Navigator

Routes and nearby destinations over a campus graph

My contributionGraph-based route queries and application integration within the course project.

FieldFullstack

View repository

Academic project

Campus Navigator project image

The work
behind the interface.

Enabled route and nearest-destination queries across 160+ UW-Madison locations through weighted graph modeling, Dijkstra’s algorithm and an HTML interface.

  • Java
  • Dijkstra
  • weighted graphs
  • HTML

The result

Dijkstra routes, travel-time output and queries for the ten closest destinations.

The problem

Built a Java route-query application over 160+ UW-Madison locations.

A decision worth examining

Represent travel as a weighted graph and separate shortest-path computation from the HTML interface.

Read the README.

View original README
READMEArchitecture, setup and usage

Java-based Shortest Path Visualization Application

This Java-based application is a powerful tool that dynamically generates interactive HTML elements, offering a sophisticated visualization of shortest path computations and other graph-based operations. It provides a seamless, user-friendly interface for users to engage with the backend, which leverages Dijkstra's algorithm to compute the shortest paths between locations within Madison. Through this robust system, users can easily explore and interact with complex algorithms, making data-driven decisions and gaining deeper insights into the efficiency of various pathfinding strategies.

Features

1. Shortest Path Prompt Generation

  • Description: Allows users to input a starting location and a destination.
  • Functionality:
    • Generates an HTML interface with fields for the user to enter the start and end locations.
    • Includes a button to compute the shortest path between the two locations.

2. Shortest Path Results Display

  • Description: Dynamically generates an HTML section to display the results of the shortest path computation.
  • Key Elements:
    • Start and end locations.
    • An ordered list of locations along the computed shortest path.
    • Total travel time for the journey.
    • Error messages if no valid path exists or if input is invalid.

3. Closest Destinations Prompt

  • Description: Provides an interface to input multiple starting locations.
  • Functionality:
    • Facilitates the calculation of the ten closest destinations from all input locations.

4. Closest Destinations Results Display

  • Description: Visualizes the results of the closest destination computation.
  • Key Elements:
    • An unordered list of starting locations.
    • The most quickly reachable destination from all provided starting locations.
    • The total travel time to the closest destination.
    • Error messages for invalid inputs or computations.

5. Demo

System Architecture

The architecture of this application is designed to be modular, with clear separation between the frontend, backend, and data handling layers. The backend handles complex computations, while the frontend provides a dynamic, user-friendly interface.

Key Components:

  1. Frontend:

    • WebApp.java: Handles dynamic HTML generation for the user interface.
    • FrontendInterface.java: Defines methods for interaction between the frontend and backend.
    • HTML Generation: Dynamically generates HTML content based on user input and backend responses.
  2. Backend:

    • GraphADT.java: Defines the graph structure with nodes and edges.
    • DijkstraGraph.java: Implements Dijkstra’s algorithm to compute the shortest paths.
    • MapADT.java: A map abstraction used to store and retrieve nodes and edges efficiently.
    • BackendInterface.java: Defines methods for the backend to communicate with the frontend.
  3. Data Structures:

    • Adjacency List: Efficiently stores nodes and edges for graph traversal.
    • Priority Queue: Utilized by Dijkstra’s algorithm to find the next node with the smallest tentative distance.
    • Hash Map: Stores nodes and edge relationships for fast lookup.

Data Structures and Algorithms (DSA) Used

1. Graph Representation (Adjacency List):

  • GraphADT.java: Represents the graph as an adjacency list, where each node has a list of connected nodes (edges) and their associated weights (travel times).
  • The adjacency list structure allows efficient traversal and retrieval of neighbors.

2. Dijkstra’s Algorithm:

  • DijkstraGraph.java: Implements Dijkstra's algorithm for shortest path computation. It uses a priority queue (min-heap) to process nodes with the smallest tentative distance efficiently.
  • The time complexity is O(E log V), where V is the number of vertices and E is the number of edges.

3. Priority Queue:

  • Min-Heap: A priority queue is used to always process the node with the smallest distance, ensuring that the algorithm is both correct and efficient.

4. Hash Maps:

  • MapADT.java: A hash map is used for storing and quickly retrieving node relationships and edge weights, ensuring fast access during pathfinding.

5. Heap (Min-Heap):

  • The priority queue implemented as a min-heap ensures efficient node selection for processing in Dijkstra’s algorithm.

Contributors

  • Vibhrav: Development and design of the app.

  • Collaborators: None

    Alt

i-Songly

  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

    FullstackViewing

    Campus Navigator

  28. i-Songly: Song Management Engine project image

    Fullstack

    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