<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-8601579266012455634.post5816008537022960976..comments</id><updated>2011-03-21T21:12:55.842-07:00</updated><category term='flash'/><category term='icons'/><category term='pojo'/><category term='hosting'/><category term='scaling'/><category term='algorithms'/><category term='rubyonrails'/><category term='owl'/><category term='audio'/><category term='activewarehouse'/><category term='sudoku'/><category term='sqlserver'/><category term='git'/><category term='javapolis'/><category term='rails'/><category term='video'/><category term='email'/><category term='combinations'/><category term='xhtml'/><category term='mashup'/><category term='work'/><category term='googleio'/><category term='scripting'/><category term='thespringexperience'/><category term='facebook'/><category term='fixtures'/><category term='i18n'/><category term='aop'/><category term='information'/><category term='swoop'/><category term='aspectj'/><category term='tune'/><category term='networking'/><category term='crud'/><category term='rest'/><category term='io2011'/><category term='mvc'/><category term='controller'/><category term='interview'/><category term='qotd'/><category term='springwebflow'/><category term='Web Architecture'/><category term='dns'/><category term='groovy'/><category term='flickr'/><category term='view'/><category term='delicious'/><category term='rocketboom'/><category term='mac'/><category term='railsconf'/><category term='mp3'/><category term='framework'/><category term='j2ee'/><category term='owl1.1'/><category term='json'/><category term='subversion'/><category term='google'/><category term='pig'/><category term='Python'/><category term='activerecord'/><category term='alohaonrails'/><category term='messaging'/><category term='opendns'/><category term='song'/><category term='documentary'/><category term='osx'/><category term='consensus'/><category term='dhtml'/><category term='protege'/><category term='bigtable'/><category term='sparql'/><category term='tdd'/><category term='dataweb'/><category term='Crypto'/><category term='Social Networking'/><category term='Agile Programming'/><category term='springframework'/><category term='foaf'/><category term='math'/><category term='charts'/><category term='startup'/><category term='deployment'/><category term='arpanet'/><category term='music'/><category term='xslt'/><category term='cube'/><category term='bookmarks'/><category term='tivo'/><category term='netbeans'/><category term='inference'/><category term='railsconf07'/><category term='switchtower'/><category term='javascript extjs'/><category term='Ruby'/><category term='drools'/><category term='hioug'/><category term='health'/><category term='gmail'/><category term='html5 ruby rails'/><category term='openid'/><category term='magazine'/><category term='html5'/><category term='erlang'/><category term='web'/><category term='coucdb'/><category term='annotations'/><category term='deliciouslinks'/><category term='storage'/><category term='puzzle'/><category term='box2d'/><category term='ontology'/><category term='mapreduce'/><category term='hadoop'/><category term='presentation'/><category term='HTTP'/><category term='reasoner'/><category term='applications'/><category term='css'/><category term='folksonomy'/><category term='spring'/><category term='coordination'/><category term='migrations'/><category term='performance'/><category term='jess'/><category term='eclipse'/><category term='errorlytics'/><category term='chrome web store'/><category term='http://dmoz.org/Computers/Internet/On_the_Web/Weblogs/'/><category term='xp'/><category term='blogs'/><category term='grddl'/><category term='humor'/><category term='vanity'/><category term='contest'/><category term='acegi'/><category term='buttons'/><category term='business'/><category term='scala'/><category term='mysql'/><category term='soundboard'/><category term='semantic web'/><category term='esb'/><category term='XML'/><category term='algorithm'/><category term='cloud'/><category term='olap'/><category term='oracle'/><category term='microformats'/><category term='movie'/><category term='rspec'/><category term='dartlang'/><category term='expertspringmvc'/><category term='filesystem'/><category term='software'/><category term='#io2011'/><category term='html'/><category term='distributedsystems'/><category term='trendline'/><category term='newgame'/><category term='hjug'/><category term='jms'/><category term='xmlschema'/><category term='thespringframework'/><category term='w3c'/><category term='uri'/><category term='web design'/><category term='uh'/><category term='couchdb'/><category term='rules'/><category term='trust'/><category term='javascript'/><category term='fuse'/><category term='mule'/><category term='jena'/><category term='im'/><category term='postfix'/><category term='graphs'/><category term='conference'/><category term='graph'/><category term='Ontologies'/><category term='Programming'/><category term='browsers'/><category term='dart'/><category term='rdf'/><category term='transactions'/><category term='General'/><category term='browser'/><category term='forms'/><category term='aspects'/><category term='windows'/><category term='science'/><category term='database'/><category term='linux'/><category term='hibernate'/><category term='unittests'/><category term='php'/><category term='supermariobrothers'/><category term='ajax'/><category term='patterns'/><category term='tutorial'/><category term='timbl'/><category term='games'/><category term='oop'/><category term='petstore'/><category term='Java'/><category term='blog'/><category term='book'/><category term='springmvc'/><category term='nas'/><category term='regressionline'/><category term='Blogging'/><category term='pagination'/><category term='activeresource'/><category term='hawaii'/><category term='tags'/><category term='tests'/><category term='appengine'/><category term='radrails'/><category term='web2.0'/><category term='food'/><category term='search'/><category term='softwareengineering'/><category term='tagging'/><category term='model'/><category term='HTML amp; CSS'/><category term='spring.net'/><category term='capistrano'/><category term='data'/><category term='metadata'/><category term='pellet'/><title type='text'>Comments on Seth Ladd's Blog: Calculating Combinations the Erlang Way</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.sethladd.com/feeds/5816008537022960976/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8601579266012455634/5816008537022960976/comments/default'/><link rel='alternate' type='text/html' href='http://blog.sethladd.com/2007/08/calculating-combinations-erlang-way.html'/><author><name>Seth Ladd</name><uri>https://profiles.google.com/118397406534237711570</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-_3znrz32MsU/AAAAAAAAAAI/AAAAAAAAI_M/fidbIxEQoH8/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8601579266012455634.post-1883454916969593341</id><published>2010-04-21T03:24:29.353-07:00</published><updated>2010-04-21T03:24:29.353-07:00</updated><title type='text'>How about this?

combos(1, L) -&amp;gt; [[X] || X &amp;lt;...</title><content type='html'>How about this?&lt;br /&gt;&lt;br /&gt;combos(1, L) -&amp;gt; [[X] || X &amp;lt;-L];&lt;br /&gt;combos(K, L) when K == length(L) -&amp;gt; [L];&lt;br /&gt;combos(K, [H|T]) -&amp;gt; &lt;br /&gt;    [[H | Subcombos] || Subcombos &amp;lt;- combos(K-1, T)]&lt;br /&gt;    ++(combos(K, T)).&lt;br /&gt;    &lt;br /&gt;combos(L) -&amp;gt;&lt;br /&gt;    lists:foldl(&lt;br /&gt;        fun(K, Acc) -&amp;gt; Acc++(combos(K, L)) end,&lt;br /&gt;        [[]],&lt;br /&gt;        lists:seq(1, length(L))&lt;br /&gt;    ).&lt;br /&gt;&lt;br /&gt;(explanation &lt;a href="http://panduwana.wordpress.com/2010/04/21/combination-in-erlang/" rel="nofollow"&gt;here&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;I guess your version is faster, though.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8601579266012455634/5816008537022960976/comments/default/1883454916969593341'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8601579266012455634/5816008537022960976/comments/default/1883454916969593341'/><link rel='alternate' type='text/html' href='http://blog.sethladd.com/2007/08/calculating-combinations-erlang-way.html?showComment=1271845469353#c1883454916969593341' title=''/><author><name>Ron</name><uri>http://www.blogger.com/profile/14617911184442989149</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.sethladd.com/2007/08/calculating-combinations-erlang-way.html' ref='tag:blogger.com,1999:blog-8601579266012455634.post-5816008537022960976' source='http://www.blogger.com/feeds/8601579266012455634/posts/default/5816008537022960976' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-652388186'/></entry><entry><id>tag:blogger.com,1999:blog-8601579266012455634.post-3890440527043350568</id><published>2008-10-21T09:32:58.000-07:00</published><updated>2008-10-21T09:32:58.000-07:00</updated><title type='text'>[...] was feeling nostalgic and went back to see h...</title><content type='html'>[...] was feeling nostalgic and went back to see how I calculated combinations in Erlang and combinations in Ruby. I wanted to see if there was an efficient way to do it without resorting [...]</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8601579266012455634/5816008537022960976/comments/default/3890440527043350568'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8601579266012455634/5816008537022960976/comments/default/3890440527043350568'/><link rel='alternate' type='text/html' href='http://blog.sethladd.com/2007/08/calculating-combinations-erlang-way.html?showComment=1224606778000#c3890440527043350568' title=''/><author><name>Semergence » Blog Archive » Calculating Combinations Using Java and Lots of Bits</name><uri>http://www.semergence.com/2008/10/21/calculating-combinations-using-java-and-lots-of-bits/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.sethladd.com/2007/08/calculating-combinations-erlang-way.html' ref='tag:blogger.com,1999:blog-8601579266012455634.post-5816008537022960976' source='http://www.blogger.com/feeds/8601579266012455634/posts/default/5816008537022960976' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1514779454'/></entry></feed>
