[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-505112-105":59,"doc-detail-505112-en":130},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","yet-another-comparison-of-sat-encodings-for-the-at-most-k-constraint","Yet Another Comparison of SAT Encodings for the At-Most-K Constraint","","The at-most-k constraint appears widely in combinatorial modeling, and many SAT encodings exist to represent it. Prior studies found the sequential-counter encoding strong for k>1, while discounting the parallel-counter approach for its inability to enforce arc consistency via unit propagation. This paper reports an experiment showing unexpectedly high performance of the binary-adder encoding for at-most-k, and compares it with PC and SC.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/yet-another-comparison-of-sat-encodings-for-the-at-most-k-constraint/505112/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/yet-another-comparison-of-sat-encodings-for-the-at-most-k-constraint/505112.png","ImageObject",300,407,{"name":92,"@type":93},"dbqoiu","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-16","2026-10-04",true,{"@type":102,"interactionType":103,"userInteractionCount":44},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is the at-most-k constraint and why does it matter in SAT problems?","Question",{"text":112,"@type":113},"It limits the number of true variables among x1..xn to be at most k, and it occurs frequently in combinatorial problems where efficient SAT formulations are needed.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How do the binary-adder, sequential-counter, and parallel-counter encodings differ?",{"text":117,"@type":113},"The sequential-counter uses unary counters, the parallel-counter uses binary counters with incomplete adders, and the binary-adder uses complete adders that can propagate both 0s and 1s.",{"name":119,"@type":110,"acceptedAnswer":120},"What does the paper’s experiment conclude about encoding performance?",{"text":121,"@type":113},"The experiment finds that the binary-adder encoding can deliver astounding performance for the at-most-k constraint, improving on expectations from earlier comparisons.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},505112,1791970145,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":44,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":14,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":143,"read_time":24,"preview_page_count":14,"preview_urls":144},3985747862462,"https://ap-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2","Yet Another Comparison of SAT Encodings for the  \nAt-Most-K Constraint  \nNeng-Fa Zhou 1  \narXiv :2005 .06274v1 [ cs .LO] 12 May 2020  \nAbstract. The at-most-k constraint is ubiquitous in combinatorial problems, and numerous SAT encodings are available for the constraint. Prior experiments have shown the competitiveness of the sequential-counter encoding for k > 1, and have excluded the parallel-counter encoding, which is more compact that the binaryadder encoding, from consideration due to its incapability of enforcing arc consistency through unit propagation. This paper presents an experiment that shows astounding performance of the binary-adder encoding for the at-most-k constraint.  \n1 INTRODUCTION  \nThe at-most-k constraint, which is denoted as ≤k (x1 , x2 , . . . , xn ) in this paper, commonly occurs in combinatorial problems. Numerous encodings have been proposed for the constraint. Prior experiments [2, 7] have shown that Sinz’s sequential-counter (SC) encoding [6], which uses unary presentation for counters, is competitive fork > 1. SC introduces O (nk) new variables, and generates O (nk) clauses. This encoding is not scalable for large n and k. As a sequel, Sinz also proposed a parallel-counter (PC) encoding, which uses binary representation for counters, and is more compact than SC. PC uses incomplete adders that only propagate 1’s. The binaryadder (BA) encoding, which uses complete adders capable of propagating both 0’s and 1’s, has been shown to be competitive for encoding integer-domain variables and arithmetic constraints [8] . The at-most-k constraint can be treated as a special linear constraint. One question arises: how competitive is the binary-adder encoding for the at-most-k constraint?  \nThis paper addresses the above question. It presents an experiment comparing the BA, PC, and SC encodings. As the benchmark used in the experiment, the pigeonhole problem, includes the at-most-one constraint, this paper also surveys SAT encodings for the at-most-one constraint, and presents comparison results of these encodings.  \n2 SAT ENCODINGS for AT-MOST-K  \nThis section gives an overview of each of the SAT encodings for the at-most-k constraint used in the experiment.  \nThe pairwise (PW) encoding for ≤ 1 (x1 , x2 , . . . , xn ) decomposes the constraint into ¬xi ∨ ¬xj , for i ∈ 1..n − 1 and j ∈ i + 1..n. PW introduces no new variables. However, it generates O (n2 ) clauses, and is therefore not viable for large n. PW is utilized to handle the base case when n ≤ 4 in the recursive encodings.  \nThe bisect (BS) encoding for ≤ 1 (x1 , x2 , . . . , xn ) splits the variables into two groups G1 = {x1 , x2 , . . . , xm } and G2 =  \n1 CUNY Brooklyn College & Graduate Center, email: zhou@sci.brooklyn.cuny.  \n{xm+1, . . . , xn } when n > 4, where m = ⌊ ~~n~~2⌋ . It introduces anew variable b as the commander variable for G1 , and uses ¬b as the commander for G2 . BS decomposes the constraint into the following:  \n(BS-1) For i ∈ 1..m: xi ⇒ b  \n(BS-2) For i ∈ m + 1 ..n: xi ⇒ ¬b  \n(BS-3) ≤ 1 (x1 , x2 , . . . , xm )  \n(BS-4) ≤ 1 (xm+1, . . . , xn )  \nConstraint BS-1 forces b to be 1 if any of the variables in G1 is 1 .  \nConstraint BS-2 forces b to be 0 if any of the variables in G2 is 1 . Since b cannot be both 0 and 1 at the same time, it is impossible for one variable in G1 and another variable in G2 to be 1 simultaneously. Constraints BS-3 and BS-4 recursively enforce at-most-one on the two groups. The BS is a special case of the bimander encoding [5], which generalizes the binary encoding [3] and the commander encoding[4]. The number of clauses generated by BS is O(n log2 (n)), and the number of new variables introduced is O(n) .  \nThe product (PD) encoding [1] for ≤ 1 (x1 , x2 , . . . , xn ) arranges the variables on an m × m matrix M when n > 4, where m =√n. It introduces two vectors of new variables \u003Cu1 , u2 , . . . , um> and \u003Cv1 , v2 , . . . , vm>, where ui represents row i and vj represents column j. In case n is not a squ","cbCailDAISCFnXiz","https://ap.wps.com/l/cbCailDAISCFnXiz","pdf",78476,"English","# Abstract\n# Introduction\n# SAT Encodings for At-MOST-K\n## Pairwise (PW) encoding\n## Bisect (BS) encoding\n## Product (PD) encoding\n## Sequential-counter (SC) encoding\n## Parallel-counter (PC) encoding","[{\"question\":\"What is the at-most-k constraint and why does it matter in SAT problems?\",\"answer\":\"It limits the number of true variables among x1..xn to be at most k, and it occurs frequently in combinatorial problems where efficient SAT formulations are needed.\"},{\"question\":\"How do the binary-adder, sequential-counter, and parallel-counter encodings differ?\",\"answer\":\"The sequential-counter uses unary counters, the parallel-counter uses binary counters with incomplete adders, and the binary-adder uses complete adders that can propagate both 0s and 1s.\"},{\"question\":\"What does the paper’s experiment conclude about encoding performance?\",\"answer\":\"The experiment finds that the binary-adder encoding can deliver astounding performance for the at-most-k constraint, improving on expectations from earlier comparisons.\"}]","Yet Another Comparison of SAT Encodings for the At-Most-K Constraint | PDF",1791090495,[145,149],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/73ed267132fbb3b1aa50da733ba2314d.webp",983,1390,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/0f412a1da14537fea088b47664387f0c.webp",982,1389]