Bookmark Maker
In this assignment, let's build a Bookmark Maker by applying the concepts we learned till now.
how SAP’s Ariba suite of solutions can aid CQ in managing their relationship with the overseas suppliers.
Veterinarian maintains a record book to store details about the pets who undergo treatments. Each pet gets a unique 3 digit identification number. A log is maintained to store the identification number and the pet name. Assume we are inserting the following records to the log
Insert 128 Julie
Insert 338 Cookie
Insert 568 Snowy
Insert 189 Kaluwa
Insert 789 Jimmy
Insert 121
Insert 445 Shaggy
Insert 556 Roxy
i)How does Open Addressing differ from Separate Chaining?
ii)If the collisions are resolved by Separate Chaining, draw the hash table. The values would be inserted according to the given order.
iii)Repeat Part ii where collisions are resolved by Linear probing.
iv)Repeat Part ii where collisions are resolved by Quadric probing.
v)Repeat Part ii where collisions are resolved by Double Hashing. Assume the constant value is 5.
Hint: Step number constant — (key % constant)
a) The stack class has been created as follows:
class Stack {
int maxSize;
double stackÄrray[ ]
int top;
i) Write the constructer method to initiate Stack class properties.
ii) Write the pop() method to remove a value from the Stack.
public double pop ( )
b) Assume S is stack developed using a linked list.
Show the final contents of the Stack after executing the following code.
for (int k=1; k<=7;k++)
s. push (k) ;
for (int k=1; k<=7;k++)
s . push (s.pop ( ) ) ;
c) The Queue class has been created as follows, to store integer values.
class Queue {
LinkedList queueList;
int n Items;
i)Write the constructor to initiate the Queue class properties.
ii)Write a method to insert a value to the Queue.
public void insert (int i)
iii)Write a method to delete a value from a Queue.
public Link delete()
iv)What is the major limitation of Linear queues?
Which of the language listed below is not a High-level programming language?
Select one:
a.
MASM
b.
C#
c.
Python
d.
Ruby