|
|
|
HEY YOU!!!,
Our records indicate that you have never posted to our site before! Why not make your first post today by saying hello to our community in our new people forums.
To access all the good good stuff you need to post, post, and post more.
|
07-22-2004, 06:45 AM
|
#1
|
|
whore
Join Date: Jul 2004
Location: cali
Posts: 395/0.25
Threads: 7
|
Artificial Intelligence programing
What programming language(s) are most popular in AI circles these days? Any good place on the 'net to learn that language or languages?
SY-S
|
|
|
|
|
|
|
quote
|
|
07-22-2004, 11:55 AM
|
#2
|
|
whore
Join Date: Jul 2004
Location: UK
Posts: 34/0.02
Threads: 0
|
Re: Artificial Intelligence programing
|
|
|
|
|
|
|
quote
|
|
07-22-2004, 11:58 AM
|
#3
|
|
whore
Join Date: Jul 2004
Location: UK
Posts: 34/0.02
Threads: 0
|
Re: Artificial Intelligence programing
Sorry, forgot to say,
He's obviously into neural network type AI.
Not the rule based stuff.
|
|
|
|
|
|
|
quote
|
|
07-22-2004, 05:07 PM
|
#4
|
|
whore
Join Date: Jul 2004
Location: satx
Posts: 27/0.02
Threads: 0
|
Re: Artificial Intelligence programing
ai = cool
|
|
|
|
|
|
|
quote
|
|
07-22-2004, 08:21 PM
|
#5
|
|
41
Join Date: Jul 2004
Location: florida
Posts: 435/0.27
Threads: 0
|
Re: Artificial Intelligence programing
most of the nueral nets I've seen are c++... for a good ai you need a language that is 'close to the metal' to perform well.... if you go to M.I.T's research page (google it) They are doing some impressing stuff...
|
|
|
|
|
|
|
quote
|
|
07-23-2004, 12:53 PM
|
#6
|
|
whore
Join Date: Jul 2004
Location: cali
Posts: 395/0.25
Threads: 7
|
Re: Artificial Intelligence programing
Thanks guys.
In high school I was great at programming--in BASIC. But when I tried to learn C a couple of years ago, I got stuck at the whole "pointer" concept. Something happened to me that has *never* happened--I seemed to hit some sort of wall of understanding. I just couldn't figure out how they worked.
Any help or advice?
I assume "pointers" are still in play in C++ as well...
SY-S
|
|
|
|
|
|
|
quote
|
|
07-25-2004, 12:28 PM
|
#7
|
|
whore
Join Date: Jul 2004
Location: UK
Posts: 34/0.02
Threads: 0
|
Re: Artificial Intelligence programing
Hi,
If you can't get your head around pointers, then Java is going to be very strange.
Having said that, there are no pointers in Java.
It's just a totally different concept thinking about objects all the time.
Something I've found a bit difficult having done non-OO for years.
OK, pointers:
Lets start with values.
You have a box, and you can put a number in it.
You give the box a name, for your convenience.
So the box named hieght, has a value in it of 25.
If you have a row of boxes, you can put a number into each.
But what do you call them ?
It would be pretty stupid to name each box with it's own name.
So, name the row of boxes.
So, we now have a row of boxes called, row_of_heights.
So, how do we put numbers into, and get numbers out of, each box.
Two ways:
1)
We use an integer to refer to the Nth box.
So, row_of_heights[2] refers to the box numbered 2 (they go from 0..n).
So, we can say row_of_heights[2] = 25 or hgt = row_of_heights[2]
2)
Instead of using an integer to refer to the Nth box, we have an address.
Now, the boxes address don't go from 0..n, because there are other rows of other things. Like a road in a town.
So the adress has to be a bigger number.
Suppose we put a whole lot of rows of boxes end to end.
Now we have 0..nnnnn, boxes.
So our row_of_heights row of boxes are now at 456..456+n, say.
Now we refer to one of the boxes with this bigger address, that in programming we call a pointer.
Lets call it ptr.
We can set it to 456.
It will point to the first of our boxes.
We can get the values in the box with value = ptr
Now, this is where I keep getting confused with damn C. Do you put *ptr or not. Now I'm onto Java I can't remember.
So, there are two ways to act with ptr.
We can get/set its value (ie change the address)
ie change where it points to - change the box it's pointing to.
Or we can get/set what it points to. ie get/set the value in the box.
Are you loosing the will to live yet ?
I think:
ptr = ptr + 1 changes the address
value = *ptr gets the value in the box.
I always thought that notation in C was stupid.
Does that help ???????
Donald (exhausted).
|
|
|
|
|
|
|
quote
|
|
07-25-2004, 12:37 PM
|
#8
|
|
41
Join Date: Jul 2004
Location: florida
Posts: 435/0.27
Threads: 0
|
Re: Artificial Intelligence programing
very close explanation Donald.
Simply put, a pointer is just that... it is a name given to an address in the computers memory. The important thing to note is that it 'holds' an address... not any value. (It POINTS to a location in memory that has a value in it.)
The * is called the dereferencing operator. Say I had a pointer called ptr and I want the data at the address stored in ptr. I simply use the dereferencing operator with the name of the *ptr.
However, many languages make this more transparent and if you are trying to get into programing you should start with one of those. Java is an excellent place to start. C is handy when you need a language that is 'closer to the metal'.
The important thing is to learn the syntax/concepts of a language well and then study design patterns.
Good luck and if you have any more ?'s post 'em back. 
|
|
|
|
|
|
|
quote
|
|
07-30-2004, 08:57 AM
|
#9
|
|
whore
Join Date: Jul 2004
Location: cali
Posts: 395/0.25
Threads: 7
|
Re: Artificial Intelligence programing
I guess I shall learn JAVA.
Is JAVA used for more than just little applets you run from web pages?
SY-S
|
|
|
|
|
|
|
quote
|
|
07-31-2004, 06:13 AM
|
#10
|
|
whore
Join Date: Jul 2004
Location: UK
Posts: 34/0.02
Threads: 0
|
Re: Artificial Intelligence programing
|
|
|
|
|
|
|
quote
|
|
08-01-2004, 01:45 PM
|
#11
|
|
whore
Join Date: May 2004
Location: IL
Posts: 246/0.15
Threads: 0
|
Re: Artificial Intelligence programing
I hear LISP is good for AI.
|
|
|
|
|
|
|
quote
|
|
08-02-2004, 01:00 PM
|
#12
|
|
Guest
Posts: n/a/0
Threads:
|
Re: Artificial Intelligence programing
Pointers in C took me awhile to wrap my head around, most beginning C programmers have the same issue. When I first started using pointers I often wondered the use of them, but once you learn them you realize how powerful they are.
In pointer arithmatic say by adding 1 to the pointer, will move the pointer by sizeof(type) (type being int, char etc) in memory. For instance, (on x86 arch), adding 1 to a pointer of type int will move it 4 bytes further in memory. It has to do this because if the pointer is off it will likely cause the program to crash.
It is tricky to explain so if you need I can put up a small piece of code showing some of the various things that can be done with pointers.
|
|
|
|
|
|
|
quote
|
|
|