tag:blogger.com,1999:blog-1754407834622405880.post6875818634885340564..comments2023-11-02T01:21:27.131-07:00Comments on Exceptional Code: Generating all permutations, combinations, and power set of a string (or set of numbers)Golam Kawsarhttp://www.blogger.com/profile/07551677609426133341noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-1754407834622405880.post-13352749042577695902021-02-21T19:39:28.588-08:002021-02-21T19:39:28.588-08:00There's a small bug in the combination code
co...There's a small bug in the combination code<br />combine(arr, k, ++startId, branch, numElem);<br />Here, it should be:<br />combine(arr, k, ++i, branch, numElem);<br />Thanks for this good articleAnonymoushttps://www.blogger.com/profile/16258965138051890129noreply@blogger.comtag:blogger.com,1999:blog-1754407834622405880.post-38500192068674068322020-07-07T22:08:12.290-07:002020-07-07T22:08:12.290-07:00This comment has been removed by the author.Nam Sài Gòn Homeshttps://www.blogger.com/profile/00514437426313468871noreply@blogger.comtag:blogger.com,1999:blog-1754407834622405880.post-28207164782727706132020-05-26T04:09:32.457-07:002020-05-26T04:09:32.457-07:00This comment has been removed by the author.Nam Sài Gòn Homeshttps://www.blogger.com/profile/00514437426313468871noreply@blogger.comtag:blogger.com,1999:blog-1754407834622405880.post-43432550334620380602019-08-22T14:16:36.881-07:002019-08-22T14:16:36.881-07:00Amazing! Thank you so much!Amazing! Thank you so much!Franceshttps://www.blogger.com/profile/11543485042312594006noreply@blogger.comtag:blogger.com,1999:blog-1754407834622405880.post-25503244933251194162016-08-16T21:31:18.993-07:002016-08-16T21:31:18.993-07:00nhận order đặt mua hàng từ website 1688
Công ty ch...<a href="http://forum.thanhanhiepthong.net/viewtopic.php?f=239&p=52570" rel="nofollow">nhận order đặt mua hàng từ website 1688</a><br /><a href="http://www.queolua.com/cong-ty-chuyen-nhan-order-dat-mua-ha-ng-tu-tren-web-1688-tai-viet-nam-120f5dc8.html" rel="nofollow">Công ty chuyên nhận order đặt mua hàng từ trên web 1688 </a><br /><a href="http://banmua.net/rao-vat/don-vi-chuyen-nhan-order-dat-mua-ha-ng-tu-website-1688-o-viet-nam-55889.html" rel="nofollow">chuyên nhận order đặt mua hàng từ website 1688 ở Việt Nam</a> Anonymoushttps://www.blogger.com/profile/06897978299222258552noreply@blogger.comtag:blogger.com,1999:blog-1754407834622405880.post-52096293947807627022016-01-03T08:50:47.205-08:002016-01-03T08:50:47.205-08:00Great code!Great code!Amitavahttps://www.blogger.com/profile/00311832743476889632noreply@blogger.comtag:blogger.com,1999:blog-1754407834622405880.post-5922327421637628712013-09-20T04:18:34.913-07:002013-09-20T04:18:34.913-07:00Hi Golam, thanks for this. but how would you combi...Hi Golam, thanks for this. but how would you combine elements with a length greater than 1 for instance i have a set {AB, AC, AD, BC, BD, CD} and want to generate all possible unique combinations that have a length of 4 i.e ACBD or BCAD etc. I am having trouble visualizing this as a treeAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1754407834622405880.post-17344304704226082772013-05-14T22:08:16.492-07:002013-05-14T22:08:16.492-07:00The combination seems not to be working correctly ...The combination seems not to be working correctly if the alphabets are repeated in the set. For e.g. for a set ABA the combinations are coming:<br />[A, B]<br />[A, A]<br />[B, A] <br /><br />Ideally this should be:<br />[A, B]<br />[A, A]<br />Anonymoushttps://www.blogger.com/profile/05533248811197527301noreply@blogger.comtag:blogger.com,1999:blog-1754407834622405880.post-58887634603125056742013-05-14T02:41:32.462-07:002013-05-14T02:41:32.462-07:00Exceptional codeExceptional codeAnonymoushttps://www.blogger.com/profile/05533248811197527301noreply@blogger.comtag:blogger.com,1999:blog-1754407834622405880.post-23254944161836262432013-02-11T20:57:47.851-08:002013-02-11T20:57:47.851-08:00Wow.... Its very Good... Think in very way.... Tha...Wow.... Its very Good... Think in very way.... ThanksNarendra Kumar Rangisettyhttps://www.blogger.com/profile/13100305632585148529noreply@blogger.comtag:blogger.com,1999:blog-1754407834622405880.post-33007604901493406682012-12-21T10:44:42.130-08:002012-12-21T10:44:42.130-08:00Thanks Brian! Glad that you liked it. Yeah, I shou...Thanks Brian! Glad that you liked it. Yeah, I should have added some complexity analysis here. Will try to add that when I have some time.Golam Kawsarhttps://www.blogger.com/profile/07551677609426133341noreply@blogger.comtag:blogger.com,1999:blog-1754407834622405880.post-12745691518729891082012-12-21T10:39:33.727-08:002012-12-21T10:39:33.727-08:00Nice work. I was just thinking how combos looked l...Nice work. I was just thinking how combos looked like a k-graph problem, searched and found this post. I'd love to see some Big-O here.Anonymoushttps://www.blogger.com/profile/14853599382390174019noreply@blogger.comtag:blogger.com,1999:blog-1754407834622405880.post-24985504882242818022012-10-17T06:40:12.709-07:002012-10-17T06:40:12.709-07:00Yes, I was never able to fully understand the perm...Yes, I was never able to fully understand the permutation generation solution until I started viewing this as a graph traversal problem.<br /><br />Thanks for reading the blog!Golam Kawsarhttps://www.blogger.com/profile/07551677609426133341noreply@blogger.comtag:blogger.com,1999:blog-1754407834622405880.post-17686065911401437342012-10-16T20:57:27.984-07:002012-10-16T20:57:27.984-07:00This is so cool. I never thought of the permutatio...This is so cool. I never thought of the permutations problem in terms of graph before. Thanks!Naderhttps://www.blogger.com/profile/07451866949543828956noreply@blogger.com