Skip to content

AtaSakik/Social-Network-Simulation-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

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
...



About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages