Find Jobs
Hire Freelancers

Write a program in C++ to implement LRU, FIFO and OPTIMAL replacement policies in a cache. Assume that the cache has only one set.

₹600-1500 INR

Dibatalkan
Dibuat lebih dari 5 tahun yang lalu

₹600-1500 INR

Dibayar ketika dikirim
The binary should accept four arguments, as follows: ./binaryName LRU [login to view URL] NumberOfCacheEntries Your program should create output file such as RollNumber_LRU_AddressSequenceFile_ NumberOfCacheEntries.out. For example, if we run $./binaryName OPTIMAL [login to view URL] 8 and your roll number is CS13B1011, then, output file should be named [login to view URL] The maximum number of addresses in input file will be 50,000. Maximum number of CacheEntries we will test for is 1024. So, if you are using fixed-size arrays, you can write the code accordingly. The addresses may be strings and not necessarily numbers. The addresses may be separated by space or newline. We will not test your program with any incorrect input, except one: the AddressSequenceFile may have some empty lines or spaces anywhere in the file. Your program should be robust to this. We will test your algorithm using our inputs files. Two sample AddressSequenceFile are attached to test your submission ([login to view URL] and [login to view URL]). In these files, each entry shows the address/location which are accessed. Submission: The name of your submitted file MUST be [login to view URL], e.g., CS15BTECH99999_CacheEmulation.cpp. You need to upload your code as a single C++ source file, which can be compiled and run with g++ without using any flags. For sake of avoiding compilation issues, do not use c++11 features. Use of STL (e.g., vector, find, etc.) is acceptable. Output: Your program should print everything in output file. In such a file, the first four lines should be TOTAL_ACCESSES = 1000 TOTAL_MISSES = 800 COMPULSORY_MISSES = 69 CAPACITY_MISSES = 731 Of course, your numbers may be different than 1000/800/69/731. After these lines, print HIT or MISS on a new line, depending on whether the address hit or missed in the cache. Sample output files (corresponding to the input files) are also attached.
ID Proyek: 17797806

Tentang proyek

8 proposal
Proyek remot
Aktif 6 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan
8 freelancer menawar dengan rata-rata ₹3.443 INR untuk pekerjaan ini
Avatar Pengguna
Hi, I have a master's degree in computer science, over 15 years of experience, and I'm a published author of books on Data Structures & Algorithms, and Computer Programming. I routinely help graduate/post-gradate students, and even doctoral candidates with various tools & utilities required in their academic pursuits of top grades, coded in C/C++/Java/Python. I believe in first time right delivery, and this commitment is reflected in my 5-star rating and 100% completion rate. I believe I am a good fit given your requirements. Looking forward to working with you on this project, and establishing a basis for ongoing professional engagement. Thanks, Gaurav
₹15.000 INR dalam 3 hari
5,0 (16 ulasan)
5,6
5,6
Avatar Pengguna
I have worked with PLCs, FPGAs, mikrocontrollers, single-board computers, robotic arms, etc. I have a high knowledge of Matlab/Octave, Python, Simulink, C, mikroC and Arduino, PLC programming: LD, ST, FBD/CFC, SFC and IL, Audacity, UsborNexus/Nexway and Open/Libre/Microsoft Office. I have a good knowledge of VHDL, C++, WordPress, Protheus, Git, Linux Shell/CMD scripts and utilities, Assembly language, C#, Pascal, MPLAB, Adobe Photoshop and Illustrator. I have basic knowledge of Julia, Lua, CSS, HTML, JavaScript, PHP, Android Studio, Java, R, Basic, Xmipp, Mindstorms, LabVIEW, Wavelab, Unreal Engine, World Machine, Guitar Pro, AbletonLive, Sibelius and Adobe InDesign.
₹1.625 INR dalam 1 hari
4,9 (32 ulasan)
5,3
5,3
Avatar Pengguna
Hi, I have 10+ years experience, have worked with top software product companies as software engineer. I am computer engineer from one of the best institutes in country. Your problem seems to be an interesting one as it involves checking how these page replacement policies perform across various data sets. I have, as hobby participated in various coding contests as well, and this one seems to be an interesting problem. Should be done much earlier but putting 2 days deadline to be on safer side. Also I will need sample input and output files to test my program.
₹600 INR dalam 2 hari
5,0 (9 ulasan)
4,2
4,2
Avatar Pengguna
I am expert in C++ .I will complete your project within time .so kindly consider my proposal for your project.
₹850 INR dalam 1 hari
0,0 (0 ulasan)
0,0
0,0

Tentang klien

Bendera INDIA
Hyderabad, India
5,0
1
Anggota sejak Jan 20, 2018

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.