Find Jobs
Hire Freelancers

Build a hash table using chaining as the collision resolution technique.

$25-35 USD

完了済み
投稿日: 9年近く前

$25-35 USD

完了時にお支払い
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
プロジェクト ID: 7554967

プロジェクトについて

3個の提案
リモートプロジェクト
アクティブ 9年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
アワード者:
ユーザーアバター
Hello. It looks as quite easy assignment, it is possible to complete it in several hours ...........
$30 USD 1日以内
4.9 (519 レビュー)
6.7
6.7
この仕事に3人のフリーランサーが、平均$60 USDで入札しています
ユーザーアバター
Hello I'm interesting your project very well I'm a Good C/C++, Math, Algorithm expert. I understand your req exactly. I m quite well experienced in these assignment jobs. Let's go ahead with me I want to service for you continously. Thanks
$70 USD 1日以内
4.9 (56 レビュー)
6.0
6.0
ユーザーアバター
I am very proficient in c, c++. I have 15 years c++ developing experience now, and I have worked for 5 years. My work is online game developing, and mainly focus on server side, the language is c++ under linux. I used c++ to make many great projects, for example, I made the tools which can convert java files to c++ scripts which has the same effect, of course garbage collection included. I also made our own mobile game using c++, I even can show you the demo of client. Trust me, please let expert help you.
$80 USD 1日以内
4.8 (48 レビュー)
5.9
5.9

クライアントについて

UNITED STATESのフラグ
IRVINE, United States
5.0
6
お支払い方法確認済み
メンバー登録日:3月 25, 2015

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。