Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Re: Re: Re: TIMTOWTDI and other languages

by abstracts (Hermit)
on Apr 28, 2002 at 23:31 UTC ( #162729=note: print w/ replies, xml ) Need Help??

in reply to Re: Re: Re: TIMTOWTDI and other languages
in thread TIMTOWTDI and other languages

Sorry if I offended you, but I was under the impression that Ovid wanted to see efficient solutions when he said: Two 100 element arrays leads to 10,000 iterations. So, how do you solve the scalability issue?

I could very well be wrong.

Comment on Re: Re: Re: Re: TIMTOWTDI and other languages
Replies are listed 'Best First'.
Re: Re: Re: Re: Re: TIMTOWTDI and other languages
by TheDamian (Priest) on Apr 30, 2002 at 04:08 UTC
    The example would work in Perl 6.

    It would also scale a little better than nested loops since =~ on an array will short-circuit on finding any match in the array.

    Of course, Perl 6 may also have superpositions natively, in which case the problem might be solvable in constant time (on the right hardware ;-)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://162729]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2016-02-13 15:27 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (437 votes), past polls