Find Jobs
Hire Freelancers

c++ program

$30-250 USD

Đã hủy
Đã đăng vào hơn 10 năm trước

$30-250 USD

Thanh toán khi bàn giao
Implement the following data structure: The structure implements a combined BST and hash table. The data structure works as follows: 1. We will start as a Binary Search Tree (BST) that has 4 levels. 2. Level 0,1,2,3 consist of normal BST nodes. 3. At level 4, notice that we have 16 leaf nodes. Those nodes will be implemented as hash tables. So, there will be 16 hash tables. The methods that need to be supported are 1. initialize 2. insert element 3. delete element 4. find next element 5. find smallest 6. find largest 7. find all elements in given range 8. trace element: print the tree path to element + (if element in hash table then print contents of the specific row of the hash table) Input: The input is a file. The file will consist of multiple lines of words, each line containing one word. Output: If output is needed then print all the elements in "INORDER" and at a leaf node, say "Hashtable:" and print the element of the hash tables and then print "End". Example: Hashtable: A,B End, CA, D COMPULSORY: JUST USE "CIN" AND "COUT" FOR INPUT AND OUTPUT. You can use "program > [login to view URL]" to redirect your output to a file.  The hash table is defined as follows: 1. It has size of 64. The total data structure has size 64*16+15=1039. 2. It uses separate chaining. 3. The hash function uses the multiplication method. Take the word and convert it to an number which is the sum of their individual ascii values; e.g. CA will be 132, as Ascii of C is 67 and that of A is 65; so 67+65=132. Then multiply the number with a constant. Choose the lower order bits and shift right to obtain 6 bits as the hash value.
Mã dự án: 5072064

Về dự án

1 đề xuất
Dự án từ xa
Hoạt động 11 năm trước

Bạn muốn kiếm tiền?

Lợi ích khi chào giá trên Freelancer

Thiết lập ngân sách và thời gian
Nhận thanh toán cho công việc
Phác thảo đề xuất của bạn
Miễn phí đăng ký và cháo giá cho công việc
1 freelancer chào giá trung bình $257 USD cho công việc này
Avatar người dùng
I am comfortable with Data structures, I am also a Java programmer with good experience in J2EE and J2ME
$257 USD trong 7 ngày
0,0 (0 nhận xét)
0,0
0,0

Về khách hàng

Cờ của UNITED STATES
Goleta, United States
0,0
0
Thành viên từ thg 10 29, 2013

Xác thực khách hàng

Cảm ơn bạn! Chúng tôi đã gửi email chứa đường link để bạn lấy tín dụng miễn phí.
Đã xảy ra lỗi trong khi gửi email của bạn. Hãy thử lại.
Người Dùng Đã Đăng Ký Tổng Số Việc Đã Đăng
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Đang tải xem trước
Đã cấp quyền truy cập vị trí.
Phiên đăng nhập của bạn đã hết hạn và bạn đã bị đăng xuất. Hãy đăng nhập lại.