Entries by Student

write my assignment 4779

Answer each question in a complete sentence.

1.  What city is often called the “port of Europe”?

2.  What was Kievan Russia?  When did it exist?

3.  Who was Ivan the Terrible?  How did he become famous?

4.  What was meant by the Mongol Yoke for Russia?

5.  Which countries are part of Scandinavia?

6.  What is the Nordic Model?

7.  What impact did the Hawley-Smoot Tariff Act of 1930 have on Europe?

8.  What is the European Central Bank’s primary role?

9.  What countries border the Baltic Sea?

10.  What is the Euro Zone?

1. The city of Rotterdam in Netherlands is often called the port of Europe2. Kievan Russia was the initially composed state on present-day Russian domain. It is broadlyviewed as the profound…

 

"Not answered?"


Get the Answer

write my assignment 30239

n this assignment you will implement three types of hash tables. Download the attached Main.java and SymbolTable.java les. The first file defines some tests for the symbol tables, the second is the symbol table interface.

• Write a class called TwoProbeChainHT that implements a two-probe separate chaining hashtable. Two-probe hashing means that you will hash to two positions, and insert the key in the shorter of the two chains.

Proper hash calculations.

∗ For the rst hash function, use the one given in the slides: hash(k)=(k.hashCode() & 0x7 f) %M

∗ For the second hash function, use: hash2(k)= (((k.hashCode() & 0x7 f) % M) * 31) % M

∗ Use Java’s LinkedList class to store each chain.

1

Figure 1: Sample Hashtable Implementation UML

∗ Do not use parallel arrays.

void put(Key key, Value val) – see interface. [8 points]Value get(Key key) – see interface.

void delete(Key key) – see interface.

• Write a class called LinearProbingHT that implements a linear probe hashtable.

Proper hash calculations. [4 points]

∗ Use the basic hash function given in the slides: hash(k)=(k.hashCode() & 0x7 f) % M, each time there is a collision, increase the hash by 1.

· An alternative way to structure this hash function is: hash(k, i) = ((k.hashCode() & 0x7 f) + i) % M, where k is the key and i is the number of collisions.

∗ An example hash sequence might look like: 43587, 43588, 43589, 43590, 43581…∗ Do not use parallel arrays.

LinearProbingHT() – a constructor that defaults to an array of size 997.

void put(Key key, Value val) – see interface.

Value get(Key key) – see interface.

void delete(Key key) – see interface. Do not degrade performance by using tags or extra nulls; you must update the probe sequence containing the element being deleted.

boolean contains(Key key) –

boolean isEmpty() –

int size() –

Iterable<Key> keys() –

There is no requirement to support array resizing.

2

• Write a class called QuadProbingHT that implements a linear probe hashtable. [8 points]Inherit all the functionality but the hash function from LinearProbingHT.

Use the following hash function: hash(k, i) = ((k.hashCode() & 0x7 f) + i*i) % M, where k is the key and i is the number of collisions.

An example hash sequence might look like: 43587, 43588, 43591, 43596, 43603…

• All three classes must implement the SymbolTable interface.

• Do not import any packages other than Queue or LinkedList in your hashtable implementations.

Please find main.java below

java.util.Arrays; java.util.HashSet; java.util.Set;/** * Symbol table testing ground. * * (your name), Acuna * (version) */ { args the command line arguments*/ {System.out.println();testIntegers( TwoProbeChainHT<Integer, Integer>());testStrings( TwoProbeChainHT<String, Integer>());System.out.println();testIntegers( LinearProbingHT<Integer, Integer>());testStrings( LinearProbingHT<String, Integer>());System.out.println();testIntegers( QuadProbingHT<Integer, Integer>());testStrings( QuadProbingHT<String, Integer>());} st An object implementing a symbol table.*/ {System.out.println();System.out.println();Set<Integer> keys = HashSet<>(Arrays.asList(-, -, -, -, -, , , , , , ));st.put(-, );st.put(-, );st.put(-, );st.put(-, );st.put(-, );st.put(, );st.put(, );st.put(, );st.put(, );st.put(, );: ;: ;(st.contains(-)) : ;: ;: ;(!st.contains(-)) : ;: ;(!st.contains()) : ;Set<Integer> stKeys = HashSet<>();(Integer i : st.keys())stKeys.add(i);: ;System.out.println(); size = st.size();st.put(, );: ;: ;: ;size = st.size();st.put(-, );: ;: ;: ;System.out.println();size = st.size();Integer ret = st.get();: ;: ;size = st.size();ret = st.get();: ;: ;System.out.println();size = st.size();st.delete();: ;: ;size = st.size();st.delete();: ;: ;System.out.println();} st An object implementing a symbol table.*/ {System.out.println();System.out.println();Set<String> keys = HashSet<>(Arrays.asList(, , , , , , , , , ));st.put(, );st.put(, );st.put(, );st.put(, );st.put(, );st.put(, );st.put(, );st.put(, );st.put(, );st.put(, );: ;: ;(st.contains()) : ;: ;: ;(!st.contains()) : ;: ;(!st.contains()) : ;Set<String> stKeys = HashSet<>();(String i : st.keys())stKeys.add(i);: ;System.out.println(); size = st.size();st.put(, );: ;: ;: ;size = st.size();st.put(, );: ;: ;: ;System.out.println();size = st.size();Integer ret = st.get();: ;: ;size = st.size();ret = st.get();: ;: ;System.out.println();size = st.size();st.delete();: ;: ;size = st.size();st.delete();: ;: ;System.out.println();}

}below is the symbolTable.java

/** * Symbol table interface. * * Sedgewick and Wayne, Acuna * <Key> search key * <Value> return type */ <, > { ;; ; ; ; ;;}

 

"Not answered?"


Get the Answer

write my assignment 16245

Write 3 pages with APA style on A Tour to History Colorado Center. From this study it is clear that&nbsp.Ancient Puebbloan people domesticated turkey for a number of reasons. One of the reasons was it was rich source of protein that could replaces the decreasing number of deers who also proved very difficult to hunt and they were also over hunted hence their reduction in population. Archeologists have found remains of turkey in pens together with their gizzards stones, eggshell in large number and these have been collected and brought into o the center.&nbsp. Within the center you would come across heals damages of turkey preserved in the center and this also support mass hunting of turkey by ancient Puebloan people.&nbsp.

This discussion stresses that&nbsp.various artifacts such as needles, neck less which shows how creative the first Puebloan of Mesa Verde area in Colorado was in designing their tools from hallow bones which they used in making blankets from turkey feathers. Dust Bowl. This shows how man has learnt how to survive in very challenging environment. The tour to the center also reflected how economical and less demanding it was to keep turkey because they consume approximately half a pound of maize grains daily and some small insects which could be found in the natural environment. This encounter therefore would be very useful to entrepreneurs who don’t have huge capital but are interesting in engaging in farming activities.&nbsp.Certain cultural orientations may be grounded on straight traditions.

 

"Not answered?"


Get the Answer

write my assignment 25455

I will pay for the following essay Pick one of global health priorities and critically review existingapproaches and mechanisms of response.a 500 word formative assessment. The essay is to be 2 pages with three to five sources, with in-text citations and a reference page.

The apprehension is that without general competition, the availability of medicines will deteriorate.

Recently, global public health has been regarded as an important catalyst of sustainable human development. However, organising a united movement toward the visions of global health is challenging, because LDCs do not have the needed resources. The global emphasis on pharmaceutical regulations and, specifically, on drugs and intellectual property rights (ITR) has been led by deliberations over access to medications in LDCs and the insufficiency of financial support for research and development to deal with ignored and tropical illnesses (Koivusalo 2010). These apprehensions were demonstrated in the agreements prior to the Doha Declaration of WTO on public health (Koivusalo 2010, 395): the development of global programmes, such as the Global Fund to Fight AIDS, Tuberculosis, and Malaria, tackling access to medications for these three illnesses. and the effort of the Commission on Intellectual Property Rights, Innovation, and Public Health of the World Health Organization (WHO).

Nevertheless, although the granting of further financial support for addressing malaria, tuberculosis, and HIV/AIDS and the venture in R&D in mistreated illnesses are definitely imperative, such financial assistances alone are not enough to deal with global health issues. Insufficient research and development and access to medications are normally regarded as issues that exist only in relation to particular illnesses and only in the most impoverished LDCs, and which can be mitigated through an enhanced provision of assistance without additional alterations to industrial regulations, commerce, and innovation worldwide (Sampat 2010). However, this strategy is becoming weak. As mentioned by Koivusalo (2010), developing nations like Thailand and Brazil, for instance, have been involved in legal debate for their attempts to

 

"Not answered?"


Get the Answer