From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_20,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bbn!inmet!ishmael!inmet!stt From: stt@inmet Newsgroups: comp.lang.ada Subject: Re: case stmt check algorithm/method Message-ID: <124000046@inmet> Date: 24 May 89 04:22:00 GMT References: <89@ Nf-ID: #R: The general approach to ensuring that all values of a range are covered exactly once involves sorting the individual sub-ranges (using qsort or your favorite sorting method), and then making sure that there is no overlap between successive sub-ranges, and in the absence of "others," making sure that the sub-ranges "touch" with no gaps between them. S. Tucker Taft Intermetrics, Inc. Cambridge, MA 02138