Abstract
In this article we review the inclusion-exclusion principle (PIE) from set theoretical and algebraic points of view and discuss its application to the calculation of permanents, a subject that is not normally covered in undergraduate courses. The presentation is intended to be rigorous but elementary, accessible to first-year students in mathematics, science, and engineering programs, requiring only familiarity with set notation, arithmetic and matrix algebra. In dealing with the calculation of permanents, we present the Ryser algorithm, one of the most spectacular developments in the approach to difficult combinatorial problems, whose computational complexity we briefly discuss. The article contains examples, complementary notes, and a program in Python that implements Ryser's algorithm using Gray codes to calculate permanents, accompanied by its discussion.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.