Clan x86

Technical (Development, Security, etc.) => General Programming => Topic started by: abc on December 04, 2007, 06:59:53 PM

Title: What's the best way to handle artifial inteligence?
Post by: abc on December 04, 2007, 06:59:53 PM
What are good techniques to follow? and uh would doing it like...

if (Command == "this" || "that" || "blah")
..

the most proficient way to do it?
Title: Re: What's the best way to handle artifial inteligence?
Post by: iago on December 04, 2007, 07:14:26 PM
That's way to wide open, it depends largely on the problem.

You can use a decision tree, bayesian decision making, neural network, various path searches, and many other techniques. But it depends on the problem that you're trying to solve.
Title: Re: What's the best way to handle artifial inteligence?
Post by: topaz~ on December 04, 2007, 07:40:01 PM
That is not real AI. I've gotten so sick of people throwing that phrase around  >:(
Title: Re: What's the best way to handle artifial inteligence?
Post by: abc on December 04, 2007, 07:41:29 PM
Well, it would be if I continued to code it...
Title: Re: What's the best way to handle artifial inteligence?
Post by: iago on December 04, 2007, 08:15:21 PM
Quote from: igimo on December 04, 2007, 07:40:01 PM
That is not real AI. I've gotten so sick of people throwing that phrase around  >:(
Sure it is. Any software that attempts to emulate intelligence is, by definition, artificial intelligence.
Title: Re: What's the best way to handle artifial inteligence?
Post by: topaz~ on December 04, 2007, 08:26:52 PM
This isn't emulation of intelligence - just a script that regurgitates prepared responses based on input. Intelligence is so much more than that, involves a level of dynamism that isn't expressed by so simplistic code.
Title: Re: What's the best way to handle artifial inteligence?
Post by: Warrior on December 04, 2007, 08:28:08 PM
Quote from: igimo on December 04, 2007, 08:26:52 PM
This isn't emulation of intelligence - just a script that regurgitates prepared responses based on input. Intelligence is so much more than that, involves a level of dynamism that isn't expressed by so simplistic code.

There are very simplistic people, I'm sure he can emulate the intelligence of some other members of this board fairly easily.
Title: Re: What's the best way to handle artifial inteligence?
Post by: iago on December 04, 2007, 08:29:55 PM
Quote from: Warriorx86] link=topic=10761.msg137332#msg137332 date=1196818088]
Quote from: igimo on December 04, 2007, 08:26:52 PM
This isn't emulation of intelligence - just a script that regurgitates prepared responses based on input. Intelligence is so much more than that, involves a level of dynamism that isn't expressed by so simplistic code.

There are very simplistic people, I'm sure he can emulate the intelligence of some other members of this board fairly easily.

Haha too true.

But seriously, at the foundation, intelligence is decision making.

Incidentally, were you talking to him or me? You posted after I gave some examples and you quoted nobody, so I can't really tell..
Title: Re: What's the best way to handle artifial inteligence?
Post by: Sidoh on December 05, 2007, 01:11:18 AM
Oh guys, can you tell me the best data structure to store my data?

Thanks.
Title: Re: What's the best way to handle artifial inteligence?
Post by: Camel on December 05, 2007, 02:12:35 AM
Quote from: Sidoh on December 05, 2007, 01:11:18 AM
Oh guys, can you tell me the best data structure to store my data?

Thanks.

I would recommend an array of randomly accessible bits.
Title: Re: What's the best way to handle artifial inteligence?
Post by: Hitmen on December 05, 2007, 02:16:27 AM
Quote from: Camel on December 05, 2007, 02:12:35 AM
I would recommend an array of randomly accessible bits.
Bits are so 1975. You should use bytes!
Title: Re: What's the best way to handle artifial inteligence?
Post by: Camel on December 05, 2007, 02:53:33 AM
Bytes are just logical groupings of bits.
Title: Re: What's the best way to handle artifial inteligence?
Post by: Sidoh on December 05, 2007, 03:00:13 AM
This is sort of unrelated, but I heard "nibble (http://en.wikipedia.org/wiki/Nibble)" used as the term for 4-bit aggregation for the first time today and thought it was hilarious.  It was especially amusing because my professor with his heavy Indian accent and extremely serious personality mentioned it on a tangent and laughed a bit (no pun intended) himself.
Title: Re: What's the best way to handle artifial inteligence?
Post by: iago on December 05, 2007, 09:34:11 AM
I get the impression that the question is how to create a chatbot AI (don't you just hate it when somebody posts a question, but refuses to clarify?). If that's indeed the case, you should look at ones already created like Eliza or ALICE. One of them essentially mangles the input to create an output ("My name is Ron" "So you're telling me that your name is Ron?"), while the other has essentially a programming language where you can create responses to specifically parsed text.

Quote from: Camel on December 05, 2007, 02:53:33 AM
Bytes are just logical groupings of bits.
Holy crap, you're brilliant! Thanks for sharing that!
Title: Re: What's the best way to handle artifial inteligence?
Post by: rabbit on December 05, 2007, 10:15:39 AM
You should use regexs!
Title: Re: What's the best way to handle artifial inteligence?
Post by: Joe on December 05, 2007, 10:46:27 PM
Quote from: Dale on December 04, 2007, 06:59:53 PM
What's the best way to handle artifial inteligence?

With an AK.

But a true AI, by definition, needs to learn and adapt. It's incredibly difficult to do.. I've heard "a million lines of C++ code" as a round estimate at how difficult it is to do.

Sentence parsing for a good guess, however, isn't all that hard.
Title: Re: What's the best way to handle artifial inteligence?
Post by: Sidoh on December 05, 2007, 10:58:27 PM
Quote from: Joe[ix86] on December 05, 2007, 10:46:27 PM
But a true AI, by definition, needs to learn and adapt. It's incredibly difficult to do.. I've heard "a million lines of C++ code" as a round estimate at how difficult it is to do.

Incorrect.  At least read the wikipedia article... your generalizations here are almost as bad as the original post.
Title: Re: What's the best way to handle artifial inteligence?
Post by: topaz~ on December 05, 2007, 11:51:57 PM
Quote from: Joe[ix86] on December 05, 2007, 10:46:27 PM
Quote from: Dale on December 04, 2007, 06:59:53 PM
What's the best way to handle artifial inteligence?

With an AK.

But a true AI, by definition, needs to learn and adapt. It's incredibly difficult to do.. I've heard "a million lines of C++ code" as a round estimate at how difficult it is to do.

Sentence parsing for a good guess, however, isn't all that hard.

That is absurd. Even a million lines of C++ code will not do it -- true artificial intelligence has yet to be achieved by mankind.
Title: Re: What's the best way to handle artifial inteligence?
Post by: iago on December 06, 2007, 08:34:12 AM
Quote from: igimo on December 05, 2007, 11:51:57 PM
Quote from: Joe[ix86] on December 05, 2007, 10:46:27 PM
Quote from: Dale on December 04, 2007, 06:59:53 PM
What's the best way to handle artifial inteligence?

With an AK.

But a true AI, by definition, needs to learn and adapt. It's incredibly difficult to do.. I've heard "a million lines of C++ code" as a round estimate at how difficult it is to do.

Sentence parsing for a good guess, however, isn't all that hard.

That is absurd. Even a million lines of C++ code will not do it -- true artificial intelligence has yet to be achieved by mankind.

... for your definition of "true artificial intelligence", which isn't necessarily the standard definition.