Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#26 2016-10-19 12:48:57

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Permutation slot generator

J.M. is a very talented guy and a good EM too.

What is 'the diamond effect'?

Put a lump coal under a million tons of pressure for a thosand years and you have a diamond. - Superman


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#27 2016-10-19 23:36:14

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,810

Re: Permutation slot generator

Maybe you're a rough diamond?

J.M. is a very talented guy and a good EM too.

His code backs that up!. up

I tried his and George's codes on a random 100,000-digit number that has a solution. JM's took approx 14.3 seconds to solve it, and George's approx 767 seconds. So their speed comparison has changed dramatically with this much larger number!


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#28 2016-10-19 23:37:53

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Permutation slot generator

Where did you find this 100000 digit number?

Rough diamond? Nope, I am a bumpkin.

?u=http%3A%2F%2Fimages.marapets.com%2Fvillage%2Fbumpkin.jpg&f=1


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#29 2016-10-19 23:55:03

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,810

Re: Permutation slot generator

With n = RandomInteger[10^100000] in the first line of code.

Do you want to see it, and the solution?


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#30 2016-10-19 23:57:34

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Permutation slot generator

You actually entered a command like that? I am flabbergasted. Wunderbar!


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#31 2016-10-20 00:04:19

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,810

Re: Permutation slot generator

It's the same idea as my post #19, where I included it in the first line of your code that I changed.

This time I made it a bit bigger...and I'm not sure if I should try it on your code!


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#32 2016-10-20 00:06:24

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Permutation slot generator

A bit bigger you say? That is enormous. I have to agree about not trying it on mine.


Do you want to see it, and the solution?

Would that not be a huge post? Do you have the exact n, I could run it myself?

Need a bit of rest, see you soon.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#33 2016-10-20 00:38:46

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,810

Re: Permutation slot generator

Here is a link to the number, and here is a link to the solution.
       
Both in copyable text...and there's also an option to download the text file.

Btw, in JM's code the number variable is n, and in George's it's m.

Rest well! I may have gone to bed when you return. >yawn<

Last edited by phrontister (2017-02-23 00:27:11)


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#34 2016-10-20 09:05:03

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Permutation slot generator

Hi;

I am unable to access either of those links.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#35 2016-10-20 10:57:15

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,810

Re: Permutation slot generator

Hmmm...that's odd! OneDrive has always worked for me before.

Try these links. They're on Filedropper, which I've never used before. It works when I tested it, but you have to complete a captcha for each file...which I didn't know before I uploaded them. sad 

Number
Solution

What file host do you use for file sharing on forums?

Edit: The above links no longer seem to work, so I went back to post #33 and changed the links to ones that work...at least for now (for me)!

Last edited by phrontister (2017-02-23 00:34:19)


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#36 2016-10-20 11:06:35

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Permutation slot generator

I do not remember since I only used it once.

Problem and solution check out. Took about 30 seconds on my machine.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#37 2016-10-20 11:10:11

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,810

Re: Permutation slot generator

That's using JM's, I guess. Have you tried it on George's yet?


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#38 2016-10-20 11:11:11

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Permutation slot generator

Heck no! I will try it on mine first. See you in a century or two...


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#39 2016-10-20 11:12:15

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,810

Re: Permutation slot generator

...or three!!


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#40 2016-10-20 11:13:24

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Permutation slot generator

That is being cynical.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#41 2016-10-20 11:15:17

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,810

Re: Permutation slot generator

Well, I don't have your intimate knowledge of your machine.


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#42 2016-10-20 11:17:08

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Permutation slot generator

I stopped having intimate knowledge of my machine in the early 90's. That is when I stopped programming in ASM.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#43 2016-10-20 11:24:24

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,810

Re: Permutation slot generator

The early 90's...I remember them well! I couldn't even spell ASM back then! But that wasn't a requirement of ASM, was it? Unless you documented your code with rems to make sense of the blur!!


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#44 2016-10-20 11:32:50

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Permutation slot generator

I remember them too. I remember writing for Wayne Greene who passed away in 2013. I was in the whose who back then and there were few ASM coders. But I ran into an ugly, weasely reptile and he sapped the ambition right out of me. Left the business and became a slug.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#45 2016-10-20 11:56:33

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,810

Re: Permutation slot generator

A happy (happier, even) slug, I hope.

I have to go...catch you later.


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#46 2016-10-20 11:56:54

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Permutation slot generator

Okay, see you later. I am going to eat some yogurt and watch a few Walking Deads.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#47 2016-10-21 00:44:16

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,810

Re: Permutation slot generator

Hi Bobby;

Getting in the mood early for Halloween?

Changing the subject...that picture of you in post #28 must have been taken quite some time before your avatar photo!!

The resemblance is still there, though - the distinctive, flared-out ears, the prominent mouth, the piercing gaze, the calm, unruffled look...

But that magnificent Rapunzel ponytail's gone, and the hat would be much more useful now than it was back then!


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#48 2016-10-21 00:56:16

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Permutation slot generator

Halloween nope, I watch them to learn what not to do in a zombie apocalypse.

I do not really look like that although I do act like that fellow. There are pictures of me now on this forum but people do not believe they are not photoshopped ( is that even a word? ).


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#49 2016-10-21 01:07:52

phrontister
Real Member
From: The Land of Tomorrow
Registered: 2009-07-12
Posts: 4,810

Re: Permutation slot generator

Very prudent, much more so than I am.

photoshopped: transitive, Internet To digitally edit or alter a picture or photograph.


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

Offline

#50 2016-10-21 01:11:01

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Permutation slot generator

I thought I had maybe come up with a new word that I could coin , become famous, mix with the celebrities and marry what is left of Angelina Jolie.

Alas, you destroyed that dream.

Very prudent, much more so than I am.

In what sense?


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

Board footer

Powered by FluxBB