Find Jobs
Hire Freelancers

Write a Skip List in C

$10-30 USD

Terminado
Publicado hace más de 7 años

$10-30 USD

Pagado a la entrega
Create an implementation of a skip list in C that allows for non-unique (meaning you can have multiple of the same number) non-negative integer keys. Your tree will only store keys, no associated data. Implement all 7 dictionary operations: - Insert a given key, return key value, -1 if unsuccessful (run out of space). - Delete a key (all nodes with the given key), return number of nodes deleted. - Search for a key, return 1 if found, 0 otherwise. - Min, Max: Return the minimum/maximum key in the tree. - Successor/Predecessor: Given a key that exists in the tree, return the next bigger/smaller key in the tree. Return -1 if the given element is the biggest/smallest in the tree, or if the given key cannot be found in the tree. - Height: the height of an empty tree will be -1. Due to the multiple ways you can handle non-unique keys, your height may vary. Your program should be able to parse input provided in the standard input, each line of which performs one dictionary operation. Each line has one directive and potentially one key (dependent on the operation), separated by a single space character. You can assume that the input has no errors. The directives are: INS: Insertion DEL: Deletion SEA: Search MIN: Minimum MAX: Maximum PRE: Predecessor SUC: Successor HEI: Tree height Example input file: INS 45 INS 31 INS 45 DEL 10 SEA 31 SEA 11 DEL 45 MIN SUC 80 INS 1 SUC 1 HEI Which should produce the following output: 45 31 45 0 1 0 2 31 -1 1 31 1 To test your program, I will run my script that it'll have to pass the 2 tests. If all of the above are implemented correctly, the script will work perfectly fine with your project/software. Your program can consist of multiple files, and should be accompanied by a makefile. When compiled with the command ‘make’, an executable called sl should be created. That executable will parse input from its standard input and produce all output in its standard output. No other output except the required output mentioned above should be sent to the standard output.
ID del proyecto: 12251689

Información sobre el proyecto

17 propuestas
Proyecto remoto
Activo hace 7 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
Adjudicado a:
Avatar del usuario
Hello! I am highly trained in C and very proficient in algorithms in data structures. If you need a perfectionist programmer to solve your problem, feel free to contact me for further details.
$20 USD en 1 día
5,0 (2 comentarios)
1,8
1,8
17 freelancers están ofertando un promedio de $34 USD por este trabajo
Avatar del usuario
Hello, I am expert in c and c++ since more than 20 years ago ... you can see my previous jobs... is it a balanced tree? AVL? ... Best regards!
$72 USD en 3 días
5,0 (125 comentarios)
7,3
7,3
Avatar del usuario
I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 6 years. My work is online game developing, and mainly focus on server side, using c++ under linux environment. I used c++ to make many great projects, for example, I made the tools which can convert java files into c++ scripts, of course garbage collection included, this job is very similar to a compiler, and is very complex. I also made our own mobile game using c++, I can show you the demo of client, if you like. I am very proficient in java also. I have a very good review on Freelancer.com, I never miss a project once I accept the job, you can check my review. Trust me, please let expert help you.
$100 USD en 1 día
4,9 (155 comentarios)
7,1
7,1
Avatar del usuario
Hello. More 20 years programming experience. I need more details to set real time and price. Regards. -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
$25 USD en 3 días
4,8 (12 comentarios)
4,4
4,4
Avatar del usuario
Hi. I can help you with this.
$30 USD en 5 días
5,0 (18 comentarios)
3,9
3,9
Avatar del usuario
Hi, I can do your project. You can see my profile for reviews and ratings for c programming. Ping me to get started
$30 USD en 2 días
5,0 (6 comentarios)
3,4
3,4
Avatar del usuario
Hi I have done lots of projects like this as evident based on my happy employers feedback in my profile. I have done Masters in CS and surely deliver as per your expecations.. Hope to work with you.. regards Arch
$23 USD en 2 días
4,9 (15 comentarios)
3,5
3,5
Avatar del usuario
hey I am c/cpp programmer and has sound knowledge and experience with data structures. I can implement this for you in a short period of time. let me know. you are interested. thanks
$35 USD en 2 días
5,0 (2 comentarios)
1,1
1,1
Avatar del usuario
A proposal has not yet been provided
$30 USD en 3 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
Hello, I have a rich experience in C and good knowledge of data structures. Bid is low, because its actually my very first on this site. Thanks, Teodor.
$20 USD en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
Keansburg, United States
5,0
5
Forma de pago verificada
Miembro desde oct 2, 2014

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.