1.1 Reading and writing: streams
Your merge sort implementation will need to read data from, and write data to disk. A
rst step, therefore, is to develop stream classes that can sequentially read and write a le
consisting of 32-bit integers.
1InputStream is = new FileInputStream( new File("input.data" ) );
DataInputStream ds = new DataInputStream(is);
[login to view URL]()
[login to view URL] and write is performed by mapping and unmapping a B element portion of the
le into internal memory through memory mapping. Whenever you need to read/write
outside of the mapped portion, the next B element portion of the le is mapped.
3.1.2 Multi-way merge
Implement a d-way merging algorithm that, given d sorted input streams of 32-bit integers,
creates a single output stream containing the elements from the input stream in sorted order.
The merging should use a priority queue (e.g., a heap) to obtain the next element to be output
at all times.
Dear Sir,
ePerfections is providing its services since 2000 in software development, websites programming, design, development and technical writing through its highly skilled and professional programmers.
- We clearly understand your requirements of developing this java assignment.
- We will deliver it on time with best quality and lot of comments.
Thanks
Let me help you. Check your pm for more details.-------------------------------------------------------------------------------------------------------------------
Hi,
I am a graduate in CS and working as a programmer for 2+ years. I have done lots of similar project both in academic courses and in freelancer.com .I assure you of clean, efficient, optimized code with
proper documentation.
best regards,
Rakib
We are freelance software developers. If you contact me I can give a quote for your project and we can discuss the details. <b><i>Removed by Admin</i></b>