Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.08 KB

File metadata and controls

40 lines (27 loc) · 1.08 KB

Social Network Simulation - Data Structures Project

This Java project simulates a basic social network as part of a Data Structures course assignment. Users can interact with each other through friend connections, activity tracking, and a simplified news feed.

📌 Features

  • Add and remove users
  • Add and remove friendships
  • Post messages and view friend news feeds
  • View personal activity feeds
  • Search for users using binary search
  • Find mutual friends
  • Recommend new friends based on mutual connections

🧠 Data Structures Used

  • HashMap: For storing users and friend lists
  • LinkedList: For user posts
  • PriorityQueue: For activities and news feed (sorted by time)
  • ArrayList: For adjacency/friend lists

🏁 How to Run

  1. Clone the repository:
  2. Open the project in any Java IDE (e.g., IntelliJ, Eclipse) or compile via terminal:
  3. javac datastructureassignment1/*.java java datastructureassignment1.DataStructureAssignment1

📷 Sample Output

=== Welcome to Social Network Assignment of Ata Sakik ===
Menu: 
1. Add User
2. Add Friend
...