Find Jobs
Hire Freelancers

Build a hash table using chaining as the collision resolution technique

$10-20 USD

In Bearbeitung
Veröffentlicht vor etwa 9 Jahren

$10-20 USD

Bezahlt bei Lieferung
Program Specification: Build a hash table using chaining as the collision resolution technique. Insertions into the hash table will correspond to declarations of variables and values in a program, searches will be requests for the value of a variable. Some variables will be local and have a narrow scope while some variables will be global. The program will take input from a file, another program written in the omnipotent programming language BORG (Bionicly Omnipotent Resistance Grinders) and generate output from this program. The BORG language has the following commands (keywords): 1. START-FINISH blocks. Indicating different scopes. 2. COM - Single line comments: Text should be ignored if on the same line 3. VAR varName – Variable Declaration, adds “varName” to the hash table. 4. variable = expression – Assignment statements, ie GEORGE = 122. Find GEORGE in the hash table and assign 122 to it. 5. ++ - increment operator, syntax: VARIABLE ++ 6. -- - decrement operator, syntax: VARIABLE -- 7. expressions, expressions are limited to unary and binary arithmetic, or variable names 8. supported operators: + - / * % ^ (plus, minus, divide, multiple, modulo, exponent) 9. PRINT – syntax PRINT expression. If the expression is a variable, and this variable is not in scope, then an error message indicating unknown variable x at line number y. The value printed if there is a variable in scope should be the variable with the closest scope. 10. Errors – other than the print statements, our interpreter will not be responsible for detecting errors, syntax errors should be disregarded if encountered, assume that the source file is correct. Our hash function: sum the ordinal values of the characters of the variable multiplied by their position in the string (1-indexing), then taking the modulo by TABLESIZE. ie. The variable ABC = (65 * 1 + 66 * 2 + 67 * 3) % TABLESIZE All tokens are separated by one space or a new line. Output: for this assignment, run your interpreter on this sample source program as well as a program of your own, and turn it the output from both, as well as the source code from your BORG program as well as source code of the assignment and its executable. Zip is good. Each student may implement one additional feature to the language, such as adding if, methods, more capable print statements. Only one student may implement a given extension to the language, and each extension must first be cleared with me.
Projekt-ID: 7571819

Über das Projekt

4 Vorschläge
Remote Projekt
Aktiv vor 9 Jahren

Möchten Sie etwas Geld verdienen?

Vorteile einer Ausschreibung auf Freelancer

Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
Vergeben an:
Avatar des Nutzers
I am a teaching assistant at one of the top 50 universities in the world (Purdue University) for a Java Programming Course. I am very proficient when it comes to school related assignments since I can relate best to them. My certifications include - - Oracle® Database 11g Administrator Certified Associate - Oracle® Certified Professional, Java SE 6 Programmer - Microsoft® Specialist Programming in HTML5 with JavaScript and CSS3 (MS) - Microsoft® Certified Solutions Developer: Web Applications (MCSD) - CCNA – Cisco Certified Network Administrator - Comptia A+ (Hardware troubleshooting) - Comptia N+ (Network Troubleshooting) - Brocade Certified Network Engineer Please contact me over chat for further details.
$25 USD in 1 Tag
4,7 (12 Bewertungen)
3,3
3,3
4 Freelancer bieten im Durchschnitt $24 USD für diesen Auftrag
Avatar des Nutzers
Hi I am Dinh. I am senior in c++ and java. Hope to work with you. >>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<< >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
$30 USD in 1 Tag
5,0 (20 Bewertungen)
3,7
3,7
Avatar des Nutzers
A proposal has not yet been provided
$100 USD in 1 Tag
5,0 (12 Bewertungen)
3,5
3,5
Avatar des Nutzers
A proposal has not yet been provided
$20 USD in 30 Tagen
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
I am a JAVA developer with one of the best company in the world. I have more than 4 years of JAVA development experience.
$20 USD in 1 Tag
0,0 (0 Bewertungen)
0,0
0,0

Über den Kunden

Flagge von UNITED STATES
United States
0,0
0
Zahlungsmethode verifiziert
Mitglied seit Apr. 28, 2015

Kundenüberprüfung

Danke! Wir haben Ihnen per E-Mail einen Link geschickt, über den Sie Ihr kostenloses Guthaben anfordern können.
Beim Senden Ihrer E-Mail ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.
Registrierte Benutzer Veröffentlichte Jobs
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Vorschau wird geladen
Erlaubnis zur Geolokalisierung erteilt.
Ihre Anmeldesitzung ist abgelaufen und Sie wurden abgemeldet. Bitte melden Sie sich erneut an.