Enno Bartels
Super tuxi


Tool for diff, html, hex edit

multi_diff

multi_diff

Back

Diff with more then 2 files is complicated. Here is a overview about the
testes diff algorithms.

1. Simple one 
  - read files
  - save files as ascii - hex
  - loop each file with each other file (each combination only one time)
    - add the move items into the bin data in memory with specal code (-1)  
  Works only with 2 files
  

2. Simple all  
  - read files
  - save files as ascii - hex
  - loop each file with each other file (all combinations allowed)
    - add the move items into the bin data in memory with specal code (-1) 


3. Simple again and again 
  - read files
  - loop until there is no diff move left
    - save files as ascii - hex
    - loop each file with each other file 
      - add the move items into the bin data in memory with specal code (-1) 
    - loop end
   

4. Simple again and agin with other special code 
  - read files
  - loop until there is no diff move left
    - save files as ascii - hex
    - loop each file with each other file 
      - add the move items into the bin data in memory with specal codes 
        random values between -1000 and -5000 that the diff programm does not 
        find identical inserts
    - loop end


5. Get items first than proceed (complex) 
  - read files
  - save files as ascii - hex
  - loop each file with each other file 
     - remember the move items in a structure
  - loop end
  - sort move items by 1. file_number and 2. file_position
  - 
  Nothing good


6. Get items first than proceed (simple)
  - read files
  - save files as ascii - hex
  - loop each file with each other file 
     - remember the move items in a structure
  - loop end
  - sort move items by  1.file_position and 2.file_number
  Works on some file combinations good. But not on all