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

Cancelado
Publicado hace más de 5 años

₹600-1500 INR

Pagado a la entrega
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 del proyecto: 17797806

Información sobre el proyecto

8 propuestas
Proyecto remoto
Activo hace 6 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
8 freelancers están ofertando un promedio de ₹3.443 INR por este trabajo
Avatar del usuario
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 en 3 días
5,0 (16 comentarios)
5,6
5,6
Avatar del usuario
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 en 1 día
4,9 (32 comentarios)
5,3
5,3
Avatar del usuario
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 en 2 días
5,0 (9 comentarios)
4,2
4,2
Avatar del usuario
I am expert in C++ .I will complete your project within time .so kindly consider my proposal for your project.
₹850 INR en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de INDIA
Hyderabad, India
5,0
1
Miembro desde ene 20, 2018

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.