Find Jobs
Hire Freelancers

hashing project

$30-250 CAD

Terminado
Publicado hace más de 3 años

$30-250 CAD

Pagado a la entrega
Given a hashtable of size 1000000 (one million) and a file of over 300k words, you will calculate the hashcode of each string and find out how many of them result in collisions (under a separate chaining collision handler … so if two words happen to hash to the same index, only that one index is used up from the hash table.) You will write a hash function: public static int hash(String s, int k) which takes a String as input and computes the polynomial in k as seen in class. The following excerpt from official Java documentation indicates that Java uses a value k = 31 to compute this polynomial. Your task is to simulate the hashing of all the English words in the given file using a polynomial for all values of k from 1 to 50. In each of these cases, you are to find the number of collisions that occurred, and also report the size of the largest hash bucket (which would correspond to the largest size of a chain under a separate chaining collision handler). Your hash function, on k=31, before you take it modulo 1million, should result in the same number as Java’s .hashCode() function (and you should perform this comparison to ensure you are computing the polynomials correctly.) Your hash function hash(s, k) should run in O(n) time where n is [login to view URL](). Note that you do not have to implement a completely-functioning hashtable! Firstly, you do not have to consider any deletions. Secondly, you do not have to store the words at each hash bucket, just the number of words that would be there. Note also that this computed polynomial will overflow as an integer, causing it to wrap into negative values. You can decide on how to deal with negative values, but document it in your solution. Your output should provide the requested information in the block comment at the bottom of your code file. Here is an example of some of the values required (your numbers might not match these exactly): …k value = 31 resulted in 51789 collisions k value = 31 maximum bucket size was 6 k value = 32 resulted in 220334 collisions k value = 32 maximum bucket size was 1543… (If you want to check your values against these values above, my hash function computed the polynomial value in an int variable, allowing it to overflow, then taking it modulo 1million, and if it resulted in a negative value, adding 1million to it.) At the end of your code, in a block comment, report the 3 best k-values by measure of total number of collisions and the 3 bests k-value by having the best (i.e. smallest) maximum chain size. Also include a statement of how you chose to handle negative hash values to place them into your hashtable.
ID del proyecto: 28255608

Información sobre el proyecto

6 propuestas
Proyecto remoto
Activo hace 3 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
I do this hashing assignment for you within 2 days as it seems relatively simple. I have 4 years of Java experience at an advanced level. I am a native English speaker and write at a University level. Contact me so we can get this done!
$65 CAD en 2 días
5,0 (6 comentarios)
2,9
2,9
6 freelancers están ofertando un promedio de $194 CAD por este trabajo
Avatar del usuario
Hi Greetings! Expertise in java based applications, including implementation of custom collections such as hashmpa, list,set etc. Please allow me to work on this to proivde confident results. Thanks MDS
$190 CAD en 5 días
4,8 (35 comentarios)
5,2
5,2
Avatar del usuario
I am a Java Developer, I am not ask you about my skills you just see my previous reviews which are given below Please send the attached file again because it is not open there. i am ready to do in low budget Below are some links to check my working https://www.freelancer.in/projects/java/Retail-Java-site-product-stock/reviews https://www.freelancer.in/projects/java/Solve-error-integration-java-web/reviews https://www.freelancer.in/projects/java/Setup-Graphhopper-our-dedicated-server/reviews https://www.freelancer.in/projects/java/Modify-fix-web-service-GPS/review
$180 CAD en 3 días
4,7 (24 comentarios)
4,6
4,6
Avatar del usuario
Hello, I have good experience on hashing. I have 5+ yrs of experience in DS and Algo. Please let me know if we can take it ahead. Regards, keshav
$80 CAD en 2 días
5,0 (2 comentarios)
2,2
2,2
Avatar del usuario
I am working as a Data Scientist with Python, TensorFlow Framework, Github, Scrapping, Analysis and Modeling Matlab Analysis and Modeling, Predictive Modelling, and Statistical Modeling using Machine Learning and Deep Learning Algorithms in these fields. SAS Designer and Developer, STATA Visualizer and Developer, SPSS Designer and Developer, SPSS AMOS R Programming Language
$400 CAD en 7 días
4,2 (1 comentario)
1,9
1,9
Avatar del usuario
Hi there. How are you? I have read your posting and I am very interested in your project. I have rich experience in Java. I am sure I can perfectly satisfy you. Let's discuss more detail on our private chat, please. I will wait for your response. I want a long-term relationship with you. Thank you.
$250 CAD en 7 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de CANADA
Kelowna, Canada
5,0
4
Forma de pago verificada
Miembro desde sept 28, 2020

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.