COMP10002 Foundations of Algorithms

What An Input File Looks Like

A concrete example of the assignment input format, using a small sample file and a line-by-line explanation.

Raw sample input

Here is the visible test_data/test0.txt input file with the same numbers and line breaks as the real file. The colours are added here only to make the sections easier to spot:

If you only want the big picture, read it like this:

Line-by-line breakdown

Each part of the file means:

Two details matter:

If you want a more human-friendly example generated from real text instead of a tiny numeric test case, use the Toy demo.