Forums
See Also: |
Forum Home
|
Search |
Recent
|
#230 - Sum Other Way (silver dice)
Forum Index
-> Season 2
-> #230 - Sum Other Way (silver dice)
| Author | Message | ||||
|---|---|---|---|---|---|
| #83 |
|
||||
|
mindcandy
Messages: 438 Offline |
Please use this thread for discussion about this card. | ||||
| #556 |
|
||||
|
mallerton
Messages: 2 Offline |
Has anyone solved this one yet. I'm certain I have the correct answer, but it says it's incorrect.
Obviously I may be wrong, but I have equations that fit up into 3 figures, then have found one with no possible fit. Just wondered if anyone else was having any problems with this one? |
||||
| #567 |
|
||||
|
Plundermot
Messages: 4 Offline |
Not really spoilers, but might as well be on the safe side:
Spoiler: (highlight to read) One thing you might have missed -- I almost did -- is that the digits can be in any order, despite them appearing in numeric order in all of the examples. (So the answer isn't 211, if that's what you were going for.) |
||||
| #573 |
|
||||
|
mallerton
Messages: 2 Offline |
Thanks for the hint. That's exactly what i was trying
|
||||
| #643 |
|
||||
|
jwo
Messages: 1 Offline |
Managed to solve this one. It did require me to write a small Java program to work out the answer though.
Some hints for anyone else looking to write a program to solve it: Spoiler: (highlight to read) Rather than going for a systematic processing of all possible digit, +/- combinations, I tried randomly allocating them.
There may be a better way of computing the answer than I did, but at least it works. |
||||
| #1450 |
|
||||
|
jb1172
Messages: 20 Offline |
I was really disappointed that this one wasn't simply:
Spoiler: (highlight to read) 9876543211 ...which would have been fun (on a yellow card at any rate. Admittedly, on a silver it would have been silly. But anyone remember Polar from season one? I just entered as many arctic animals and got the answer to that one!) jb |
||||
| #5003 |
|
||||
|
plexme
Messages: 5 Offline |
ok, I'm trying to write a program to solve this one, and the smallest number for which I can't construct an expression is
Spoiler: (highlight to read) 19960 I know this isn't the right answer though, so is there anyone out there who has played around with this and can give me an expression that evaluates to that number, to help me debug my code? TIA |
||||
| #5005 |
|
||||
|
X9Tim
Messages: 36 Offline |
jwo wrote: Managed to solve this one. It did require me to write a small Java program to work out the answer though. Maybe I've missed something, but surely: Spoiler: (highlight to read) when you test the correct answer you have to try every possible sequence of digits with every combination of +,-,concat. Because of this, I wrote my program (in bash script) to go throught them all in order logging each result to a file then sort them to find the smallest missing number. I ran it for 2 days solid and it's still got the first digits in order: 012, so my guess is it will take months of continual processing to finish. Therefore I gave up and am searching for a better way (maybe a compiled rather than interpreted language...) Any ideas what i'm doing wrong?
|
||||
| #5013 |
|
||||
|
staffnerd
Messages: 3 Offline |
I wrote a VB .NET prog to solve this one using the hints above about limiting the result set. I used every possible combination of digits (10!=3.6M). I assumed the answer would be 5 digits or less so any configuration of calcs that would have given a larger solution, I threw away. Using the assumptions in the prior hint about how many +,- operations versus concatenations (10%, 10%, 80%) and these assumptions shortened the run times. It ran in < 15 min on a current notebook and nailed the answer on first try. Of course if I had gotten the wrong answer, it would have narrowed the characteristics of the possible answer and would have resulted in code changes. | ||||
| #5027 |
|
||||
|
stamford13
Messages: 398 Offline |
I really have no idea with this one. Rather impatient, you see. It's good revision for Maths SAT's though...
Could someone give me a formula to use on excel to do it myself please. I've got a basic jist of it, but can't for the life of me work it out.
TOM |
||||
S2W2 14/86 Find me at My Trades stamford13@hotmail.co.uk PM me if you need anything!
|
|||||
| #5109 |
|
||||
|
plexme
Messages: 5 Offline |
hallelujah!!
finally debugged my code and got the right answer, as always it seems, was those pesky regexps. didn't go down the random guessing route, but down the try every relevant combination route, trying to eliminate duplicate scenarios, and scenarios that could not improve the current highest value on the way. will post my strategy in more detail later, to help anyone else struggling with this one. |
||||
| #5376 |
|
||||
|
stamford13
Messages: 398 Offline |
plexme wrote: will post my strategy in more detail later, to help anyone else struggling with this one. You said you would post your strategy. I am sooo stuck you wouldnt believe it, and with SATs on tuesday, I need desperate help. Please Tom |
||||
S2W2 14/86 Find me at My Trades stamford13@hotmail.co.uk PM me if you need anything!
|
|||||
| #5382 |
|
||||
|
plexme
Messages: 5 Offline |
Sorry Stamford13 (and others) got overtaken by real life events. So here's how I got to the answer, with no random guessing!
Spoiler: (highlight to read)
hope that helps, happy to provide more hints if required, will post my code on Tuesday, as it's sat on my computer at work. |
||||
| #12980 |
|
||||
|
fretty
Messages: 463 Offline |
How am i supposed to solve this card without using a computer. I have no programming skills at all!!
Can someone please point me in the right direction to solve this without a program? |
||||
My S2W2 solves - http://s2w2.perplexcitycardmanager.co.uk/cards/solved/fretty/ ![]() |
|||||
| #12985 |
|
||||
|
smartyman
Messages: 43 Offline |
fretty wrote: How am i supposed to solve this card without using a computer. I have no programming skills at all!! I guess it must be possible, but I also went the computer program route. I didn't spend too much effort tuning the program to go after the most likely combinations so it was more of a brute force attack. plexme wrote: as it's sat on my computer at work But you only wrote the code during non-working hours, right?
|
||||
My solves: http://s2w2.perplexcitycardmanager.co.uk/cards/solved/smartyman/ |
|||||
Forum Index
-> Season 2
-> #230 - Sum Other Way (silver dice)
| |
![[Avatar]](http://www.buffyquiz.com/plunder100.jpg)
![[Avatar]](http://img.photobucket.com/albums/v726/mushyroomy/totoro.gif)
![[Avatar]](http://www.nomadig.com/journal/stuff/kerith.jpg)
It's good revision for Maths SAT's though...
![[image]](https://files.getdropbox.com/u/338892/PXC%20Project/PXC%20Banner%201.png)
![[Avatar]](http://static.perplexcity.com/assets/public/March2006/animated/cowanimation.gif)