{"id":21909383,"url":"https://github.com/pbergstrom90/algorithmscpp","last_synced_at":"2025-03-22T07:49:46.160Z","repository":{"id":229858124,"uuid":"736253267","full_name":"PBergstrom90/AlgorithmsCPP","owner":"PBergstrom90","description":"Examples of using Algorithms in C++. Queue, Map \u0026 LRU-Cache.","archived":false,"fork":false,"pushed_at":"2024-01-09T14:05:29.000Z","size":232,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-22T07:49:41.493Z","etag":null,"topics":["algorithms","cplusplus","lru-cache","map","queue"],"latest_commit_sha":null,"homepage":"","language":"C++","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/PBergstrom90.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}},"created_at":"2023-12-27T11:55:29.000Z","updated_at":"2024-08-30T09:39:50.000Z","dependencies_parsed_at":"2024-03-26T16:53:51.398Z","dependency_job_id":"8df5cb6d-be83-4b2b-b9c7-96be296b757d","html_url":"https://github.com/PBergstrom90/AlgorithmsCPP","commit_stats":null,"previous_names":["pbergstrom90/algorithmexam","pbergstrom90/algorithmscpp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PBergstrom90%2FAlgorithmsCPP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PBergstrom90%2FAlgorithmsCPP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PBergstrom90%2FAlgorithmsCPP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PBergstrom90%2FAlgorithmsCPP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PBergstrom90","download_url":"https://codeload.github.com/PBergstrom90/AlgorithmsCPP/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244924766,"owners_count":20532874,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["algorithms","cplusplus","lru-cache","map","queue"],"created_at":"2024-11-28T17:17:16.039Z","updated_at":"2025-03-22T07:49:46.136Z","avatar_url":"https://github.com/PBergstrom90.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Algorithm Exam\n\n## Author\n- Pontus Bergström\n\n## Sensor Data Analysis\nThis C++ program analyzes sensor data related to altitude, speed, and fuel consumption. It performs various operations on the data, such as sorting, checking altitude measurements, identifying top speed occurrences, and adjusting fuel consumption.\n\n## Overview\nThe program utilizes a SensorData class to store information about sensor readings, including altitude, speed, and fuel consumption. It generates random data for analysis and performs operations on the dataset.\n\n## Prerequisites\n- C++ Compiler\n- Standard Template Library (STL)\n\n## Functions\n\n### FillData\nGenerates random sensor data for analysis.\n\n### SortAllData\nSorts the sensor data based on timestamp.\n\n### CheckSensorData\nChecks and prints altitude data for a specific date.\n\n### CheckTopSpeed\nIdentifies entries of speed data above a specified limit.\n\n### AdjustFuelConsumption\nIncreases fuel consumption values by 75%.\n\n### Additional Files\n- **hospital.cpp \u0026 hospital.h**: Implements a hospital simulation with a patient queue algorithm. The program manages a queue of patients, allowing users to add new patients, call the next patient, view the current queue, and exit the simulation.\n\n- **atm.cpp \u0026 atm.h**: Introduces a basic ATM simulation using a map algorithm to store account information. Users can create accounts, log in, withdraw and deposit money. The map efficiently associates account numbers with account details.\n\n- **hockey.cpp \u0026 hockey.h**: Introduces a hockey player class, an LRU (Least Recently Used) cache algorithm, and file storage for a hockey player simulation. The LRU cache efficiently manages a limited number of hockey player records in memory, providing quick access to frequently accessed players while optimizing space usage. The file storage component reads and writes player data to a text file.\n\n## How to Run\n1. Compile the main program using a C++ compiler.\n2. Run the compiled executable.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpbergstrom90%2Falgorithmscpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpbergstrom90%2Falgorithmscpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpbergstrom90%2Falgorithmscpp/lists"}