A document contains multiple sentences. Given a set of rules providing the relative ordering among the pairs of sentence
Posted: Thu Feb 17, 2022 11:05 am
A document contains multiple sentences. Given a set of rules providing the relative ordering among the pairs of sentences, you are asked to devise an algorithm that can be used to re-order the sentences such that continuity is improved. For example, if the rules are given as {ml <m2, ml <m4, ml <m3, m2 <m4} (where mi represents the ith sentence in the document), a possible order would be ml, m2, m3, m4. Outline the steps of the algorithm and explain with the help of an example. [10 marks]