qqp question1: What is the algorithm used to reserve ticket in Indian Railways? question2: What algorithm does the Indian Railways use to make sure that no two similar aged people of opposite gender are seated next to each other?