Lexicographic Order

14,000,000 Leading Edge Experts on the ideXlab platform

Scan Science and Technology

Contact Leading Edge Experts & Companies

Scan Science and Technology

Contact Leading Edge Experts & Companies

The Experts below are selected from a list of 5487 Experts worldwide ranked by ideXlab platform

Thom Fruhwirth - One of the best experts on this subject based on the ideXlab platform.

  • CSCLP - Complete propagation rules for Lexicographic Order constraints over arbitrary domains
    Lecture Notes in Computer Science, 2006
    Co-Authors: Thom Fruhwirth
    Abstract:

    We give an efficiently executable specification of the global constraint of Lexicographic Order in the Constraint Handling Rules (CHR) language. In contrast to previous approaches, the implementation is short and concise without giving up on the best known worst case time complexity. It is incremental and concurrent by nature of CHR. It is provably correct and confluent. It is independent of the underlying constraint system, and therefore not restricted to finite domains. We have found a direct recursive decomposition of the problem. We also show completeness of constraint propagation, i.e. that all possible logical consequences of the constraint are generated by the implementation. Finally, we report about some practical implementation experiments.

  • complete propagation rules for Lexicographic Order constraints over arbitrary domains
    Lecture Notes in Computer Science, 2005
    Co-Authors: Thom Fruhwirth
    Abstract:

    We give an efficiently executable specification of the global constraint of Lexicographic Order in the Constraint Handling Rules (CHR) language. In contrast to previous approaches, the implementation is short and concise without giving up on the best known worst case time complexity. It is incremental and concurrent by nature of CHR. It is provably correct and confluent. It is independent of the underlying constraint system, and therefore not restricted to finite domains. We have found a direct recursive decomposition of the problem. We also show completeness of constraint propagation, i.e. that all possible logical consequences of the constraint are generated by the implementation. Finally, we report about some practical implementation experiments.

  • logical rules for a Lexicographic Order constraint solver
    Proceedings of CHR 2005 Second Workshop on Constraint Handling Rules, 2005
    Co-Authors: Thom Fruhwirth
    Abstract:

    We give an executable specification of the global constraint of Lexicographic Order in Constraint Handling Rules (CHR) language. In contrast to previous approaches, the implementation is short and concise without giving up on linear time worst case time complexity. It is incremental and concurrent by nature of CHR. It is provably correct and confluent. It is independent of the underlying constraint system, and therefore not restricted to finite domains. We also show completeness of constraint propagation, i.e. that all possible consequences of the constraint are generated by the implementation. Our algorithm is encoded by three pairs of rules, two corresponding to base cases, two performing the obvious traversal of the sequences to be compared and two covering a not so obvious special case when the Lexicographic constraint has a unique solution.

Shunchieh Chang - One of the best experts on this subject based on the ideXlab platform.

  • Amortized efficiency of generation, ranking and unranking left-child sequences in Lexicographic Order
    Discrete Applied Mathematics, 2019
    Co-Authors: Kungjui Pai, Jouming Chang, Shunchieh Chang
    Abstract:

    Abstract A new type of sequences called left-child sequences (LC-sequences for short) was recently introduced by Wu et al. (2014) for representing binary trees. They pointed out that such sequences have a natural interpretation from the view point of data structure and gave a characterization of them. Based on this characterization, there is an easily implementing algorithm that uses generate-and-test approach to filter all LC-sequences of binary trees with n internal nodes in Lexicographic Order, while in general it is not efficient at all. In this paper, we first design two novel rotations that allow us to drastically alter the shape of binary trees (and thus their corresponding LC-sequences). As an application, these operations can be employed to generate all LC-sequences in Lexicographic Order. Accordingly, we present a more efficient algorithm associated with the new types of rotations for generating all LC-sequences and show that it takes only constant amortized running cost. Moreover, we extend our study to the ranking and unranking problems. By integrating a measure called “left distances” introduced by Makinen (1987) to represent binary trees, we develop efficient ranking and unranking algorithms for LC-sequences in Lexicographic Order. With the help of aggregate analysis, we show that both ranking and unranking algorithms can be run in amortized cost of O ( n ) time and space.

  • amortized efficiency of ranking and unranking left child sequences in Lexicographic Order
    Conference on Combinatorial Optimization and Applications, 2016
    Co-Authors: Kungjui Pai, Jouming Chang, Shunchieh Chang
    Abstract:

    A new type of sequences called left-child sequences (LC-sequences for short) was recently introduced by Wu et al. [19] for representing binary trees. In particular, they pointed out that such sequences have a natural interpretation from the view point of data structure and gave a characterization of them. Based on such a characterization, there is an algorithm to generate all LC-sequences of binary trees with n internal nodes in Lexicographic Order. In this paper, we extend our study to the ranking and unranking problems. By integrating a measure called “left distances” introduced by Makinen [8] to represent binary trees, we develop efficient ranking and unranking algorithms for LC-sequences in Lexicographic Order. With a help of aggregate analysis, we show that both ranking and unranking algorithms can be run in amortized cost of \(\mathcal {O}(n)\) time and space.

  • COCOA - Amortized Efficiency of Ranking and Unranking Left-Child Sequences in Lexicographic Order
    Combinatorial Optimization and Applications, 2016
    Co-Authors: Kungjui Pai, Jouming Chang, Shunchieh Chang
    Abstract:

    A new type of sequences called left-child sequences (LC-sequences for short) was recently introduced by Wu et al. [19] for representing binary trees. In particular, they pointed out that such sequences have a natural interpretation from the view point of data structure and gave a characterization of them. Based on such a characterization, there is an algorithm to generate all LC-sequences of binary trees with n internal nodes in Lexicographic Order. In this paper, we extend our study to the ranking and unranking problems. By integrating a measure called “left distances” introduced by Makinen [8] to represent binary trees, we develop efficient ranking and unranking algorithms for LC-sequences in Lexicographic Order. With a help of aggregate analysis, we show that both ranking and unranking algorithms can be run in amortized cost of \(\mathcal {O}(n)\) time and space.

Thomas Noll - One of the best experts on this subject based on the ideXlab platform.

Kungjui Pai - One of the best experts on this subject based on the ideXlab platform.

  • Amortized efficiency of generation, ranking and unranking left-child sequences in Lexicographic Order
    Discrete Applied Mathematics, 2019
    Co-Authors: Kungjui Pai, Jouming Chang, Shunchieh Chang
    Abstract:

    Abstract A new type of sequences called left-child sequences (LC-sequences for short) was recently introduced by Wu et al. (2014) for representing binary trees. They pointed out that such sequences have a natural interpretation from the view point of data structure and gave a characterization of them. Based on this characterization, there is an easily implementing algorithm that uses generate-and-test approach to filter all LC-sequences of binary trees with n internal nodes in Lexicographic Order, while in general it is not efficient at all. In this paper, we first design two novel rotations that allow us to drastically alter the shape of binary trees (and thus their corresponding LC-sequences). As an application, these operations can be employed to generate all LC-sequences in Lexicographic Order. Accordingly, we present a more efficient algorithm associated with the new types of rotations for generating all LC-sequences and show that it takes only constant amortized running cost. Moreover, we extend our study to the ranking and unranking problems. By integrating a measure called “left distances” introduced by Makinen (1987) to represent binary trees, we develop efficient ranking and unranking algorithms for LC-sequences in Lexicographic Order. With the help of aggregate analysis, we show that both ranking and unranking algorithms can be run in amortized cost of O ( n ) time and space.

  • a constant amortized time algorithm for generating left child sequences in Lexicographic Order
    International Workshop on Frontiers in Algorithmics, 2017
    Co-Authors: Kungjui Pai, Jouming Chang
    Abstract:

    Wu et al. (Theoret. Comput. Sci. 556:25–33, 2014) recently introduced a new type of sequences, called left-child sequences (LC-sequences for short), for representing binary trees. They pointed out that such sequences have a natural interpretation from the view point of data structure and gave a characterization of them. Based on this characterization, Pai et al. (International conference on combinatorial optimization and applications. Springer, Cham, pp. 505–518, 2016) showed that there is an easily implementing algorithm that uses generate-and-test approach to filter all LC-sequences of binary trees with n internal nodes in Lexicographic Order, while in general this algorithm is not efficient at all. In this paper, we design two novel rotations that allow us to drastically alter the shape of binary trees (and thus their corresponding LC-sequences). As an application, these operations can be employed to generate all LC-sequences in Lexicographic Order. Accordingly, we present a more efficient algorithm associated with the new types of rotations for generating all LC-sequences and show that it takes only constant amortized running cost.

  • FAW - A Constant Amortized Time Algorithm for Generating Left-Child Sequences in Lexicographic Order
    Frontiers in Algorithmics, 2017
    Co-Authors: Kungjui Pai, Jouming Chang
    Abstract:

    Wu et al. (Theoret. Comput. Sci. 556:25–33, 2014) recently introduced a new type of sequences, called left-child sequences (LC-sequences for short), for representing binary trees. They pointed out that such sequences have a natural interpretation from the view point of data structure and gave a characterization of them. Based on this characterization, Pai et al. (International conference on combinatorial optimization and applications. Springer, Cham, pp. 505–518, 2016) showed that there is an easily implementing algorithm that uses generate-and-test approach to filter all LC-sequences of binary trees with n internal nodes in Lexicographic Order, while in general this algorithm is not efficient at all. In this paper, we design two novel rotations that allow us to drastically alter the shape of binary trees (and thus their corresponding LC-sequences). As an application, these operations can be employed to generate all LC-sequences in Lexicographic Order. Accordingly, we present a more efficient algorithm associated with the new types of rotations for generating all LC-sequences and show that it takes only constant amortized running cost.

  • amortized efficiency of ranking and unranking left child sequences in Lexicographic Order
    Conference on Combinatorial Optimization and Applications, 2016
    Co-Authors: Kungjui Pai, Jouming Chang, Shunchieh Chang
    Abstract:

    A new type of sequences called left-child sequences (LC-sequences for short) was recently introduced by Wu et al. [19] for representing binary trees. In particular, they pointed out that such sequences have a natural interpretation from the view point of data structure and gave a characterization of them. Based on such a characterization, there is an algorithm to generate all LC-sequences of binary trees with n internal nodes in Lexicographic Order. In this paper, we extend our study to the ranking and unranking problems. By integrating a measure called “left distances” introduced by Makinen [8] to represent binary trees, we develop efficient ranking and unranking algorithms for LC-sequences in Lexicographic Order. With a help of aggregate analysis, we show that both ranking and unranking algorithms can be run in amortized cost of \(\mathcal {O}(n)\) time and space.

  • COCOA - Amortized Efficiency of Ranking and Unranking Left-Child Sequences in Lexicographic Order
    Combinatorial Optimization and Applications, 2016
    Co-Authors: Kungjui Pai, Jouming Chang, Shunchieh Chang
    Abstract:

    A new type of sequences called left-child sequences (LC-sequences for short) was recently introduced by Wu et al. [19] for representing binary trees. In particular, they pointed out that such sequences have a natural interpretation from the view point of data structure and gave a characterization of them. Based on such a characterization, there is an algorithm to generate all LC-sequences of binary trees with n internal nodes in Lexicographic Order. In this paper, we extend our study to the ranking and unranking problems. By integrating a measure called “left distances” introduced by Makinen [8] to represent binary trees, we develop efficient ranking and unranking algorithms for LC-sequences in Lexicographic Order. With a help of aggregate analysis, we show that both ranking and unranking algorithms can be run in amortized cost of \(\mathcal {O}(n)\) time and space.

David Clampitt - One of the best experts on this subject based on the ideXlab platform.