|
-
Aug 15th, 2005, 09:27 AM
#1
Thread Starter
Frenzied Member
Yr Wyddfa ?!!
See!
Made you look!!
Last edited by yrwyddfa; Aug 15th, 2005 at 09:40 AM.
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Aug 15th, 2005, 09:31 AM
#2
Re: Yrwyddfa ?!!
Hey! THIS IS THE BEST THREAD EVAR!!!!111111!!!111!1!1+?+?+1+?+1?!?!?!?1?+1+1+!
I feel n00b cells are gathering around my head...
-
Aug 15th, 2005, 09:32 AM
#3
Re: Yrwyddfa ?!!
Don't expect me to quote you on anything. It will take me 3 minutes just to type your name correctly.
-
Aug 15th, 2005, 09:35 AM
#4
Re: Yrwyddfa ?!!
yrwyddfa is easy to type and remember. Y-R-W-Y-D-D-F-A.
Y R
W Y D D
F A
Took me about 20 seconds to write this whole message and I'm not even a native speaker of this darn language.
-
Aug 15th, 2005, 09:35 AM
#5
Thread Starter
Frenzied Member
Re: Yrwyddfa ?!!
I know it's childish but hey: I still made you look!
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Aug 15th, 2005, 09:36 AM
#6
Thread Starter
Frenzied Member
Re: Yrwyddfa ?!!
 Originally Posted by Merri
yrwyddfa is easy to type and remember. Y-R-W-Y-D-D-F-A.
Y R
W Y D D
F A
Took me about 20 seconds to write this whole message and I'm not even a native speaker of this darn language.
It's Welsh for 'The Tomb' or somthing.
. . . and once you start . . . well you'll know where you'll end up.
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Aug 15th, 2005, 09:39 AM
#7
Re: Yrwyddfa ?!!
Posting a silly message in this thread.
-
Aug 15th, 2005, 09:40 AM
#8
Thread Starter
Frenzied Member
Re: Yrwyddfa ?!!
Indeed.
Now IS the time for all good men to come to the aid of the party
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Aug 15th, 2005, 09:45 AM
#9
Re: Yr Wyddfa ?!!
Fine then, dont invite me!
-
Aug 15th, 2005, 09:48 AM
#10
-
Aug 15th, 2005, 09:49 AM
#11
Thread Starter
Frenzied Member
Re: Yr Wyddfa ?!!
 Originally Posted by kfcSmitty
Fine then, dont invite me! 
Girls are, of course, invited. But their aid to the party is somewhat different from that which is provided by men (or boys in the case of most on this forum)
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Aug 15th, 2005, 09:57 AM
#12
Re: Yr Wyddfa ?!!
 Originally Posted by yrwyddfa
Girls are, of course, invited. But their aid to the party is somewhat different from that which is provided by men (or boys in the case of most on this forum)
I was referring to the "good men" part of your post
-
Aug 15th, 2005, 09:58 AM
#13
Thread Starter
Frenzied Member
Re: Yr Wyddfa ?!!
 Originally Posted by kfcSmitty
I was referring to the " good men" part of your post 
There is only "a few good men" (sorry) available around here.
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Aug 15th, 2005, 10:05 AM
#14
Re: Yr Wyddfa ?!!
are you bored today? You're going crazy on the CC posts 
Come to think of it, I think i've only really seen you post in the world events forum
-
Aug 15th, 2005, 10:07 AM
#15
Thread Starter
Frenzied Member
Re: Yr Wyddfa ?!!
I post all over the place. I've helped many a poor soul out of their well of doom.
Normally with a well place bucket and rope.
Yes, I'm bored.
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Aug 15th, 2005, 10:07 AM
#16
Thread Starter
Frenzied Member
Re: Yr Wyddfa ?!!
I post all over the place. I've helped many a poor soul out of their well of doom.
Normally with a well placed bucket and rope.
Yes, I'm bored.
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Aug 15th, 2005, 10:15 AM
#17
Re: Yr Wyddfa ?!!
Take part in the sudoku contest. No more need to be bored. Actually, it takes most of you life and sucks you into the world of sudoku, where there is no return out of. My English rocks.
-
Aug 15th, 2005, 10:16 AM
#18
Re: Yr Wyddfa ?!!
I wanted to try the sudoku solver, but I don't udnerstand how the puzzels work, and I have no idea where to start....Damn me being a newbie
-
Aug 15th, 2005, 10:26 AM
#19
Thread Starter
Frenzied Member
Re: Yr Wyddfa ?!!
Yeah - I looked at the Sudoku problem it appears it's just a graph-colouring problem - albeit it an NP one.
Still you can use partial transitive closure techniques to 'guess' the hard ones.
Didn't think it was particularly fair on the noobs .. . .
(and I can't be bothered)
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Aug 15th, 2005, 10:29 AM
#20
Re: Yr Wyddfa ?!!
If you get enough interest into it and just start pondering and coding, you ought to learn a lot when you get into it. Even if you don't manage to get it ready for the contest you get valuable experience 
This almost sounds like a non Chit Chat post... no wait! There is something fishy about this... yes! A non CC person posts in CC!
-
Aug 15th, 2005, 10:33 AM
#21
Thread Starter
Frenzied Member
Re: Yr Wyddfa ?!!
 Originally Posted by Merri
If you get enough interest into it and just start pondering and coding, you ought to learn a lot when you get into it. Even if you don't manage to get it ready for the contest you get valuable experience
This almost sounds like a non Chit Chat post... no wait! There is something fishy about this... yes! A non CC person posts in CC!
I still can't be bothered.
Now if there was $$$$$$ then that is certainly a motivation . . .
The challenge here is to make (in my case VB6) perform well outside of the box particulary as this problem screams for heap memory and I feel that I would need proper dereferencing (copymemory too slow) in order to get it fly
That means inline machine code which is probably against the rules.
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Aug 15th, 2005, 10:52 AM
#22
Re: Yr Wyddfa ?!!
Why the problem would need heap memory? My solver runs any sudoku well under 2800 bytes, most don't require even 400 bytes to solve...
-
Aug 15th, 2005, 10:59 AM
#23
Thread Starter
Frenzied Member
Re: Yr Wyddfa ?!!
It depends on how the 2.8k is allocated. If it's stack allocated that's fine. If it's heap allocated then you'll be agreeing with me.
if you're using SAFEARRAY's (VB's native array type) then you're using heap memory unless you're using very very special techniques to keep the pvData and it's associated memory on th stack.
If you're not then you're using heap memory. If you're accessing directly using pvData then you're gonna need to dereference it.
You can do this using the array syntax (at least one multiplication happens on each access; more (and much less efficient) if you're using more than one dimension) or you can dereference directly using pvData, pointer arithmetic, and CopyMemory.
It's faster to use :
VB Code:
mov ecx, [esp+4]
mov eax, [ebp + ecx]
ret 4
which dereferences a pointer and returns it in the eax register.
Last edited by yrwyddfa; Aug 15th, 2005 at 11:03 AM.
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Aug 15th, 2005, 11:00 AM
#24
Thread Starter
Frenzied Member
Re: Yr Wyddfa ?!!
See - I told you I'm bored.
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Aug 15th, 2005, 11:12 AM
#25
Re: Yr Wyddfa ?!!
I'm not good with terms. Probably need to Google to figure out what heap memory actually means. But yes, I'm using native fixed size VB arrays without any tricks into them. They're fast enough and never really bothered to try to figure out other ways to access them. I do optimize so that I use them the least I can though, a lot of temporary variables used.
I guess you can already figure that I don't know ASM either. As we discussed at some point: it is more about the programmer than the language
-
Aug 15th, 2005, 11:16 AM
#26
Thread Starter
Frenzied Member
Re: Yr Wyddfa ?!!
Yes I am bored. I dragged that assembler from some code that derived from some book published years ago . . can't even remember the name.
That was when I was interested in kicking the butts of nasty C++ programmers. DO you remember when those who programmed in C++ thought they were efficient programmers? They never realised it was the compiler. Those were the days when it was easy to get VB to outperform C++ . . . .
Still was a long time ago, and I don't care too much for this now. I occasionally come across a problem that I'll spent days investigating, but those days are generally long gone.
I'm more interested in playing cricket with my kids.
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Aug 15th, 2005, 11:17 AM
#27
Thread Starter
Frenzied Member
Re: Yr Wyddfa ?!!
 Originally Posted by Merri
As we discussed at some point: it is more about the programmer than the language 
Yup
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Aug 15th, 2005, 11:22 AM
#28
Thread Starter
Frenzied Member
Re: Yr Wyddfa ?!!
 Originally Posted by Merri
I'm using native fixed size VB arrays without any tricks into them. They're fast enough . . .
Yeah that's good technique. VB can really optimise access to them, and the SAFEARRAY code in oleaut is optimised for fixed length stuff.
It's also a good lesson for noobs to learn: That is to never to exceed the problem domain. In this example you never need more than nine 81 element arrays. To make those arrays dynamic is a waste of time and resources (assuming you're going for a brute force aproachrather than a more heuristic approach)
I may give it a go this weekend using evolved neural nets. Might be fun. But I bet the sun comes out and I end up the village green with my kids, my beautiful wife, and a pint of ale . . .
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Aug 15th, 2005, 11:26 AM
#29
Re: Yr Wyddfa ?!!
Ah, I'm too young in this case Though I've had to do my own small part to show VB isn't slow like many seem to think, especially C programmers and Linux users. There are still some roaming around every now and then, but not that often. And actually, I'm not looking for them either. I did hear about those things but I weren't old enough to get into it. Besides had only VB4 at the time, which of course was the P-code hell.
-
Aug 16th, 2005, 11:22 AM
#30
Thread Starter
Frenzied Member
Re: Yr Wyddfa ?!!
Thought I'd put this thread back on top. See how many more people look!
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Aug 16th, 2005, 12:18 PM
#31
Re: Yr Wyddfa ?!!
Me! But only because it was in my userCP!
-
Aug 16th, 2005, 12:36 PM
#32
Re: Yr Wyddfa ?!!
 Originally Posted by kfcSmitty
I wanted to try the sudoku solver, but I don't udnerstand how the puzzels work, and I have no idea where to start....Damn me being a newbie
Pleeease join the contest smitty? I thought the same thing, but then Lou offered me some help in this thread:
http://www.vbforums.com/showthread.php?t=350314&page=3
(Posts #84 and #95).
And that made it all make sense and got me started. Then I went back and read the whole sudoky discussion thread and picked up a few more tips before starting my program. Now the discussion thread has a ton more tips and if you read if before you start you will have a leg up on most people.
If you want some more help on understanding out it works let me know.
I'm a noob, too (I think we started around the same time) and it has been an AWESOME learning experience.
I'll PM you about this if I don't see a response in a day or so.
-
Aug 16th, 2005, 12:40 PM
#33
Re: Yr Wyddfa ?!!
Then, for each revealed cell, delete all of that cells could be's, then place in it its must be.
Then, for every cell in that mustbe's row, delete that must be from each of those cells,
Ditto per column,
Ditto for the actual 3x3 parent SQUARE.
Oh god, Im 3 lines in and my head already hurts
Can someone just explain in lamens terms the end result?
IE) You need to fill all 9 squares, each with a different number........etc
Last edited by kfcSmitty; Aug 16th, 2005 at 12:43 PM.
-
Aug 16th, 2005, 12:47 PM
#34
Re: Yr Wyddfa ?!!
Oh, you mean basic basics. I would say read this:
http://en.wikipedia.org/wiki/Sudoku
... but that is really confusing too. TIn the most basic terms you are trying to fill in each row with the numbers 1-9, each column with the numbers 1-9 and each 3x3 square of cells with the numbers 1-9. You can't have the same number twice in any row/column/group.
That link I posted explains how to apply logic rules to your solver which help solve the puzzle.
-
Aug 16th, 2005, 12:52 PM
#35
-
Aug 16th, 2005, 12:57 PM
#36
Re: Yr Wyddfa ?!!
well I understand how to solve it now! gawd damn :/
Guess I'll start cracking at this tonight
-
Aug 16th, 2005, 01:08 PM
#37
Re: Yr Wyddfa ?!!
 Originally Posted by kfcSmitty
well I understand how to solve it now! gawd damn :/
Guess I'll start cracking at this tonight
Cool. If you get stuck on anything PM me or post somewhere and I will see what I can do. The more people who participate the better. The deadline is approaching fast, but don't worry about it, just get what you can done. Its worth it.
-
Aug 17th, 2005, 05:56 AM
#38
Thread Starter
Frenzied Member
Re: Yr Wyddfa ?!!
At the time of writing there has been 150 views.
See if I can get you nosey gits to look here 200 times
"As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein
It's turtles! And it's all the way down
-
Aug 17th, 2005, 08:01 AM
#39
-
Aug 17th, 2005, 08:50 AM
#40
Re: Yr Wyddfa ?!!
This is really weird. For ages i thought Merri was a chick, and now I find out that smitty is a chick! I thought smitty was a guy.
You dudes really need to choose better avatars or something.
Also, sudoku is the most boring subject in the known multiverse next to trainspotting, to quote visualDalek: "PLEASE POST IN THE CORRECT FORUM!!! EXTERMINATE!" 
Merri, ever think of turning your optimisations skills to a worthwhile project? Such as graphics programming (seriously).
I don't live here any more.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|