kirancodes.me
To Proof Maintenance & Beyond!

916 papers · page 46 of 46

The Minout Problem

Richard S. Bird

The problem of computing the smallest natural number not contained in a given set of natural numbers has a number of practical applications. Typically, the given set represents the indices of a class of objects ‘in use’ and it is required to find a ‘free’ object with smallest ind…

On Removing Duplicates

Richard S. Bird

The function remdup (also called mkset in some functional languages) removes duplicates from a given list. The following definition of remdup is standard and leads to a quadratic time algorithm The operator (—) used in the last expression subtracts one list from another; its defi…