The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.lang.scheme
From: John David Stone <st...@cs.grinnell.edu>
Date: 11 Jan 2002 12:12:36 -0600
Local: Fri, Jan 11 2002 1:12 pm
Subject: Re: Subsets of a list
George Caswell <tetsu...@maine.rr.com> writes: I used SUBS to find all the ten-element subsets of a twenty-element > Anyway, my implementation, "subs" uses up a lot of heap space compared to, > say, "combos" posted by John Stone, and incurs more garbage collection, but > still comes out faster: > (define (expand xs sets) > (define (subs xs n) set, in the same environment (Chez Scheme 6.1, Linux, 700MHz Pentium III) where SUBSETS took 460 ms and COMBOS took 250 ms for the same task. SUBS took 990 ms. -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||