Algorithm for Generating Train Calendar Texts
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.References
Bachratý, H., Šotek, K.: Koncepce směřující k inovaci tvorby jízdního řádu v železniční dopravě. In INFOTRANS 2009. Pardubice: University of Pardubice, 2009. p. 117–126. ISBN 978-80-7395-171-9.
Greiner, K.: Information System of Railway Undertakings Train Track Requirements. PROMET – Traffic & Transportation. Zagreb: Sveučilište u Zagrebu, 2011, vol. 23, no. 2, p. 141 – 146. ISSN 0353-5320.
Knižní jízdní řády [online]. 2013 [cit. 2013-01-09]. Available from: <http://www.szdc.cz/drahy/knizni-jizdni-rady.html>.
Bachratý, H., Kršák, E., Sadloň, L., Tavač, M.: Príspevok ku generovaniu textových popisov bitových kalendárov. Perner’s Contacts [online]. Pardubice: University of Pardubice, 2008, Vol. 3., No. 5. p. 6–15 [cit. 2013-01-09]. Available from: <http://pernerscontacts.upce.cz/>. ISSN 1801-674X.
Greiner, K.: Centrální editor vlaků Českých drah. In INFOTRANS 2002. Pardubice: University of Pardubice, 2002. ISBN 80-7194-419-X.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).