Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Apl > Re: APL in Colo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 24 of 26 Topic 990 of 1166
Post > Topic >>

Re: APL in Colorado, USA? Am I the last one?

by Jack <jgrudd@[EMAIL PROTECTED] > Apr 30, 2008 at 08:50 PM

On Apr 29, 1:28 pm, RHui...@[EMAIL PROTECTED]
 wrote:
> A solution to problem 2 in J.
>
> combsum=: 4 : 0 M.
>  if. (x>:y)+.0=x do. ,: 1 ,~ +/"1 i.(x<:y),x
>  else. (~.@[EMAIL PROTECTED]
 ,. +//.)/ |: (((x-1),0)+"1 x combsum&<: y),(x,0)+"1 x
> combsum y-1 end.
> )
>
>    6!:2 't=. 6 0 (+"1) 6 combsum 49'
> 0.0252536
>
> That is, 0.025 seconds.
>
>    $t
> 259 2
>    3{.t
> 21 1
> 22 1
> 23 2
>    _3{.t
> 277 2
> 278 1
> 279 1
>
> Details inhttp://www.jsoftware.com/jwiki/Essays/Combination_Sums
>
> On Apr 23, 10:51 pm, AAsk <AA2e...@[EMAIL PROTECTED]
> wrote:
>
> > It would be interesting to read a detailed account of what swayed the
> > Matlab fellow. Perhaps a book on APL and advanced mathematics is
> > needed.
>
> > A while ago,
>
> > 1. I was exploring the shortest path problem using APL: I wanted to
> > list all the paths. The shortest path is easily given by APL, see
> > Learning & Applying APL by B Legrand.  No APL text book delved into
> > this area ie. enumerate all the paths. Google highlighted several non-
> > APL solutions. Eventually I found an APL solution written by a US
> > academic (can't remember the URL).
>
> > 2. A colleague was doing an investifation. Take the UK national
> > lottery - it has 6!49 combinations where the first (1,2,3,4,5,6) and
> > the last (44,45,46,47,48,49) have each got a sum and the number of
> > combinations that have the same respective sum is exactly 1. The
> > objective was to list each sum between the 2 with the number of
> > combinations ... quickly. After a lot of experimentation, the solution
> > ran in less than 2 minutes on a 1.6 GHz Pentium processor.
>
> > I've heard that APL had something to do with the planning of the
> > (glass) roof of the British Library but not read about it.
>
> > More in print on the undeniable case for APL would be very welcome.
> > Would it not?

Wow.
 




 26 Posts in Topic:
APL in Colorado, USA? Am I the last one?
vess_irvine@[EMAIL PROTEC  2008-04-22 16:22:58 
Re: APL in Colorado, USA? Am I the last one?
Morten Kromberg <mkrom  2008-04-23 01:00:41 
Re: APL in Colorado, USA? Am I the last one?
llund <lorin.lund@[EMA  2008-04-23 10:59:34 
Re: APL in Colorado, USA? Am I the last one?
jgrudd@[EMAIL PROTECTED]   2008-04-23 22:30:29 
Re: APL in Colorado, USA? Am I the last one?
"David Liebtag"  2008-04-24 16:12:37 
Re: APL in Colorado, USA? Am I the last one?
Bob Cain <arcane@[EMAI  2008-04-26 01:32:56 
Re: APL in Colorado, USA? Am I the last one?
Olivier Lefevre <lefev  2008-04-25 15:34:35 
Re: APL in Colorado, USA? Am I the last one?
AAsk <AA2e72E@[EMAIL P  2008-04-23 22:51:25 
Re: APL in Colorado, USA? Am I the last one?
Jack <jgrudd@[EMAIL PR  2008-04-23 23:32:25 
Re: APL in Colorado, USA? Am I the last one?
"jk" <*axy*@  2008-04-24 09:02:16 
Re: APL in Colorado, USA? Am I the last one?
"Stephen Taylor <  2008-04-24 00:50:25 
Re: APL in Colorado, USA? Am I the last one?
Jack <jgrudd@[EMAIL PR  2008-04-24 23:33:31 
Re: APL in Colorado, USA? Am I the last one?
"jk" <*axy*@  2008-04-25 09:17:17 
Re: APL in Colorado, USA? Am I the last one?
"jk" <*axy*@  2008-04-25 12:06:34 
Re: APL in Colorado, USA? Am I the last one?
"jk" <aqxqy@  2008-04-25 22:46:01 
Re: APL in Colorado, USA? Am I the last one?
Jack <jgrudd@[EMAIL PR  2008-04-24 23:55:17 
Re: APL in Colorado, USA? Am I the last one?
Jack <jgrudd@[EMAIL PR  2008-04-25 18:29:15 
Re: APL in Colorado, USA? Am I the last one?
"jk" <aqxqy@  2008-04-26 08:41:59 
Re: APL in Colorado, USA? Am I the last one?
Jack <jgrudd@[EMAIL PR  2008-04-26 19:36:17 
Re: APL in Colorado, USA? Am I the last one?
"jk" <aqxqy@  2008-04-27 08:51:30 
Re: APL in Colorado, USA? Am I the last one?
Jack <jgrudd@[EMAIL PR  2008-04-28 23:10:00 
Re: APL in Colorado, USA? Am I the last one?
RHui000@[EMAIL PROTECTED]  2008-04-29 12:28:43 
Re: APL in Colorado, USA? Am I the last one?
vess_irvine@[EMAIL PROTEC  2008-04-30 19:37:41 
Re: APL in Colorado, USA? Am I the last one?
Jack <jgrudd@[EMAIL PR  2008-04-30 20:50:55 
Re: APL in Colorado, USA? Am I the last one?
Steve <steve@[EMAIL PR  2008-05-01 19:24:17 
Re: APL in Colorado, USA? Am I the last one?
"jk" <aqxqy@  2008-05-02 09:25:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 0:57:32 CST 2008.