how i can to implement (Balanced Merge Sort) algorithm?

轻俞倾 卺磉?

Hello for all

I want to make Balanced Merge Sort algorithm in my project ,but i face

many problems as,

I can't make this algorithm

and , i don't know ,how i can to establish files to write and read from it ..

Example about this algorithm for members who don't know about BMS

suppose that ::

1-I have main File with name "data.txt" ,

2-I have template files ,F1,F2,F3,F4

2-this file includes these values

10,5,20,30,22,40,35,69,41,25,32,58,21,30,6,55,10,7,8,56,20,30,40,50

22,32,75,88,65,42,84,95,32,64,12,20

Question::

How i can select each time 4 values and put them in array ?

to understand my question please see heare::

first time ,i select (10,5,20,30) store values in array

second time , i select (22,40,35,69) tore values in same array

and so on until finishing for all values

[926 byte] By [balanceda] at [2007-10-2 7:17:27]
# 1
Continued here: http://forum.java.sun.com/thread.jspa?threadID=690252
prometheuzza at 2007-7-16 20:52:36 > top of Java-index,Other Topics,Algorithms...