{"title":"Sorting","authors":"S. Skiena","doi":"10.1002/9781119575955.ch6","DOIUrl":null,"url":null,"abstract":"Set Interface (L03-L08) Container build(X) len() given an iterable X, build set from items in X return the number of stored items Static find(k) return the stored item with key k Dynamic insert(x) delete(k) add x to set (replace item with key x.key if one already exists) remove and return the stored item with key k Order iter ord() find min() find max() find next(k) find prev(k) return the stored items one-by-one in key order return the stored item with smallest key return the stored item with largest key return the stored item with smallest key larger than k return the stored item with largest key smaller than k","PeriodicalId":343501,"journal":{"name":"Algorithm Design with Haskell","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2019-05-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Algorithm Design with Haskell","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1002/9781119575955.ch6","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Set Interface (L03-L08) Container build(X) len() given an iterable X, build set from items in X return the number of stored items Static find(k) return the stored item with key k Dynamic insert(x) delete(k) add x to set (replace item with key x.key if one already exists) remove and return the stored item with key k Order iter ord() find min() find max() find next(k) find prev(k) return the stored items one-by-one in key order return the stored item with smallest key return the stored item with largest key return the stored item with smallest key larger than k return the stored item with largest key smaller than k