1 / 10
Download Presentation
Sorting Socks: A Binary Relation Approach
An Image/Link below is provided (as is) to download presentation
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.
Content is provided to you AS IS for your information and personal use only.
Download presentation by click this link.
While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
During download, if you can't get a presentation, the file might be deleted by the publisher.
E N D
Presentation Transcript
Sort these 6 socks • How to determine which comes first?
Compare 2 at a time • Draw arrows froman “earlier” sock toa “later” one. • As many arrows as you wish to show the sorting order you have decided.
Sorting as a Binary Relation You don’t want Symmetry
Sorting as a Binary Relation This sort of Symmetry is ok though
Sorting as a Binary Relation We want self loops
Sorting as a Binary Relation We want Transitivity
Sorting as a Binary Relation With these properties: • Reflexive • Anti-symmetric • Transitive A binary relation with said properties is called a partial order. Sorting requires at least a partial order; better still a total order.
More Related