Thread: Possible to write adaptive programs?

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    137

    Possible to write adaptive programs?

    Hi, this is such a wierd topic I don't even know if its possible. I was thinking about writing a program in C to block a user input based on what has been put in before, you know for fun, like you do . IE you can input a number between 1 and 9 and the computer tries to block it.
    I then wonderd if it would be possible to incoperate some genetic algorithm to make the program adaptive, constantly try to find a smart way to block it.
    I making sense here?
    A computer would easily block all if I just put 1,2,1,2,1,2,1,2,1,2 etc
    A computer however would never block them if I put in increasing values of x squared 1,4,9,16,25. You reckon a GA would be any more adept at figuring out this problem?

    Thanks for any thoughts, just curious one day at work about this (I work as a paint chemist and its boring stuff)
    http://uk.geocities.com/ca_chorltonkids

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    >>> I work as a paint chemist and its boring stuff

    Boring? Marry a woman who reads "womens lifestyle magazines". Believe me, you'll learn to hate paint.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    Check out this article for a basic introduction. I'm not sure exactly what you're trying to say when you say "block," but the concept of adaptive AI intrigues us all.
    http://aihorizon.com/essays/generalai/perceptrons.htm

    When you're done with that, check out the thread I'm about to post, since you're a chemist.
    Away.

  4. #4
    Registered User rahaydenuk's Avatar
    Join Date
    Jul 2002
    Posts
    69

    Re: Possible to write adaptive programs?

    Originally posted by crag2804
    A computer however would never block them if I put in increasing values of x squared 1,4,9,16,25.
    Why would it not be able to figure out the sequence of squares? They do follow a strictly defined and simple pattern, it should be able to get them after a few values.
    Richard Hayden. ([email protected])
    Webmaster: http://www.dx-dev.com
    DXOS (My Operating System): http://www.dx-dev.com/dxos

    PGP: 0x779D0625

  5. #5
    Registered User
    Join Date
    Sep 2002
    Posts
    137
    What I mean is I couldn't think of a way it could learn about squares and block them without knowledge of what it'd be like a sqaures sequence.
    Yep paint chemistry is one of the most boring things ever. Thankfully in two weeks I'm starting my year in industry as a synthetic organic chemist, working with diesel fuel additives. Should be more interesting. Who'd have thought that all these years of learning would have led me to paint
    http://uk.geocities.com/ca_chorltonkids

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. read write lock in C#
    By George2 in forum C# Programming
    Replies: 0
    Last Post: 04-16-2008, 08:49 AM
  2. write data to end of file
    By sujeet1 in forum C++ Programming
    Replies: 2
    Last Post: 06-03-2007, 12:45 PM
  3. Game Programming FAQ
    By TechWins in forum Game Programming
    Replies: 5
    Last Post: 09-29-2004, 02:00 AM
  4. Some humour...
    By Stan100 in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 11-06-2003, 10:25 PM
  5. Calling DOS based programs
    By UnclePunker in forum C++ Programming
    Replies: 3
    Last Post: 08-07-2003, 09:37 AM