{"id":24848809,"url":"https://github.com/mogankumar/bird-flock-simulation-with-pyspark","last_synced_at":"2026-05-01T00:31:42.685Z","repository":{"id":271785984,"uuid":"914517969","full_name":"Mogankumar/Bird-Flock-Simulation-with-PySpark","owner":"Mogankumar","description":"A PySpark-based bird flock simulation modeling alignment, cohesion, and separation forces with a leader guiding the flock. Efficiently handles large-scale simulations and generates a visualized GIF of the flock’s movement.","archived":false,"fork":false,"pushed_at":"2025-01-09T20:06:25.000Z","size":14740,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-02T19:43:44.863Z","etag":null,"topics":["argparse","matplotlib","numpy","pyspark","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mogankumar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-09T18:50:27.000Z","updated_at":"2025-01-09T20:08:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"0afb226d-9d6c-4717-b80f-dbd88bca5e29","html_url":"https://github.com/Mogankumar/Bird-Flock-Simulation-with-PySpark","commit_stats":null,"previous_names":["mogankumar/bird-flock-simulation-with-pyspark"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Mogankumar/Bird-Flock-Simulation-with-PySpark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mogankumar%2FBird-Flock-Simulation-with-PySpark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mogankumar%2FBird-Flock-Simulation-with-PySpark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mogankumar%2FBird-Flock-Simulation-with-PySpark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mogankumar%2FBird-Flock-Simulation-with-PySpark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mogankumar","download_url":"https://codeload.github.com/Mogankumar/Bird-Flock-Simulation-with-PySpark/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mogankumar%2FBird-Flock-Simulation-with-PySpark/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32481553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["argparse","matplotlib","numpy","pyspark","python3"],"created_at":"2025-01-31T12:17:14.961Z","updated_at":"2026-05-01T00:31:42.672Z","avatar_url":"https://github.com/Mogankumar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bird Flock Simulation with PySpark\n\nThis project simulates the behavior of a flock of birds using PySpark for parallel computation. The simulation involves updating the positions and velocities of a group of birds based on forces like alignment, separation, and cohesion. Additionally, a leader bird guides the flock. The simulation results in a visualization and a GIF representing the flock’s behavior over time.\n\n**Features**\n\t•\tSimulates bird flock movement using rules of flocking:\n\t•\tCohesion: Birds are attracted to the nearest bird within a specific distance.\n\t•\tSeparation: Birds maintain a minimum distance to avoid collisions.\n\t•\tFollowing the leader: Birds follow the leader bird as it moves in a circular path.\n\t•\tUses PySpark for distributed computation to handle large numbers of birds efficiently.\n\t•\tVisualizes the simulation and generates a compressed GIF.\n\n**How It Works**\n\t1.\tInitialization:\n  \t•\tRandom positions and velocities are assigned to the birds.\n  \t•\tA leader bird’s trajectory is defined as a circular path.\n\t2.\tComputation:\n  \t•\tFor each frame of the simulation:\n  \t•\tForces such as cohesion, separation, and alignment are computed for each bird relative to its neighbors.\n  \t•\tThe birds’ velocities are updated based on the computed forces, and their positions are updated using the velocities.\n\t3.\tVisualization:\n  \t•\tThe simulation is visualized using Matplotlib.\n  \t•\tA GIF of the simulation is created using helper functions.\n\n   \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmogankumar%2Fbird-flock-simulation-with-pyspark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmogankumar%2Fbird-flock-simulation-with-pyspark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmogankumar%2Fbird-flock-simulation-with-pyspark/lists"}