Skip to the main content

Original scientific paper

https://doi.org/10.7307/ptt.v25i2.1287

Algorithm for Generating Train Calendar Texts

Karel Greiner



Abstract

The article describes a possibility of generating train calendar text for the needs of compiling the annual timetable in the conditions of the Czech Republic. Based on the analysis of the types of texts of calendars that appear in various print outputs, a heuristic algorithm was designed to generate a text from a set of calendar days. The algorithm is a part of an application that also provides a tool to define the text of the calendar by using a mask of sub-periods and calendars to be displayed in them. The algorithm was tested on real data of the timetable. In most cases, the algorithm shows the same or better results than the previously used tools. In several cases, however, a better result can be obtained by the user. The described algorithm to generate the text of the calendar is a part of a program that is used for compiling the timetable for trains in the Czech Republic.

Keywords

railway calendar; railway timetable; generating text

Hrčak ID:

102066

URI

https://hrcak.srce.hr/102066

Publication date:

26.4.2013.

Visits: 630 *