2 votes

Algorithm for decoding database like file structure

You're going to have to get heuristic on this I think. My approach would be to generate a parse tree for the first record, where you tokenize the data and create nodes for valid interpretations. Then ...
MerseyViking's user avatar
1 vote

Algorithm for decoding database like file structure

You know the number of columns from the metadata file (is that really all it contains? A single integer?). Generate the set of all possible schemas with that number of columns. For each line, parse ...
Tobias's user avatar
  • 201

Only top scored, non community-wiki answers of a minimum length are eligible