오늘을 마지막으로 AI 수업이 끝난다.

 

많이 빠졌던 터라, 생소한게 많지만, 마지막 수업이니만큼 들어보려고 하는중..

 

인공지능 수업에서는 prolog라는 언어를 사용했는데,

 

기존에 많이 사용되는 java, C와는 전혀 다른 언어이다. (논리적  프로그래밍 언어)

 

사용 문법이 전혀 다르기때문에, 자바와 씨에서 쉽게 할 수 있는것을 쉽게 구현할 순 없지만,

 

그 외의 프롤로그만의 강점이 있다.

 

데이터베이스에서 쿼리를 하는 식으로 프로그래밍을 하는데,

 

parsing에서 빛을 발한다.

 

 

 

예를 들어서,

 

A = [hello,world]

 

라는 변수 A가 있으면, (프롤로그에서 대문자로 시작하는 단어는 모두 변수이다)

 

A = [First, world]

 

라는 구문을 함께 실행했을때, First = hello 라는 결과가 나온다.

 

이러한 특성을 이용하면, recursion function 뿐만 아니라, parsing도 굉장히 쉽게 해낼 수 있다.

 

 

 

 

 

인공지능 수업에서 게임 인공지능같은것을 배울꺼라고 예상했었지만,

 

매우 이론적인 수업이었고, 프로젝트들고 이론을 바탕으로, 게임과는 거리가 멀었다.

 

좀 전에 프롤로그 언어를 이용해서 뭔가 재밌는 프로그램 만들 꺼리 없을까 구글을 뒤져봤더니,

 

간략한 어드벤처 프로그램도 만들 수 있고,

 

또 검색을 해보니, 자바와 프롤로그를 함께 사용하는 방법도 있었다.

 

자바의 장점과 프롤로그의 장점을 사용하면,

 

수백 라인의 자바 소스파일을 수십 라인으로 줄이는게 가능할것만 같다.

 

 

 

방학하면 재미삼아서 한번 해봐야지 ㅎㅎ

 

지역태그 : 미국>뉴저지

네이버 브레인 테스트를 하고 왔습니다.

 

5개의 분야에서 테스트를 하는데요.

논리수리력, 집행력, 공간지각력, 주의집중력, 작업기억력이 있습니다.

 

평소에 테스트를 해보면

논리수리력: 0.1~10%

공간지각력: 0.1~4%

집행력: 1.0~40%

주의집중력: 40~80%

작업기억력: 40~80%

이라는 수치가 나옵니다.

 

그리고 BQ는 110~115 정도?

 

근데 이번에 대박이 났네요 =_=;

 

 

 

BQ가 146이나 떴습니다 =_=/

 

논리수리력 1.2

집행혁 0.8

공간지각력 0.1

 

이 위의 수치는 평소에 나오던 수치라 놀라지 않았는데

 

주의집중력, 작업기억력에서 깜놀했습니다 ㅠㅠ

항상 80%를 웃돌던 수치가 0.1%, 그리고 12%로 나왔습니다

 

 

 

 

이런 대박 기록으로 인하여 저도 랭킹이라는 곳에 발을 잠시나마 담가보게되었습니다.

매일매일 기록이 초기화되는 시스템에서

지금이 새벽시간이라 가능한 일이겠지만서도, 랭커(-_-)가 됐다는것에 그냥 만족하려고 합니다 흐흐;

 

앞으로의 계획은.. 내 누적 평균 BQ를 올려보는것입니다.

대략적으로 125를 넘겼으면 좋겠네요.. 후후 +_+)b

 

여러분도 한번 해보시길 ㅋ

http://game.boom.naver.com/brain.nhn

 

지역태그 : 미국>뉴저지

http://www.ohmynews.com/NWS_Web/view/at_pg.aspx?CNTN_CD=A0001220887

 

프린터를 많이 사용하는 분이, 경험에서 우러나온 유용하고 좋은 정보를 다룬 기사입니다.

 

사람들 낚으려는 기사들만 보다가 이런 기사 보니까 감동이 밀려오네요 =_=

태그 : 좋은기사
지역태그 : 미국>뉴저지

숙제 하는 과정에서 재밌는 페이지 있어서 퍼왔습니다

(http://www.gdargaud.net/Humor/OddPrime.html)



각 분야에서 "소수"를 정의한건데 각각 분야의 성격이 반영된것 같습니다.

영어 울렁증이 있으셔도 어려운 영어들 없으니 한번 보여도 무방할것 같습니다(....)
prime : 소수 (숫자)
odd integer : 홀수
even integer : 짝수

(뒷부분에 보면 죠지 부시, 닉슨 대통령의 답변도 있군요 (....) )

Odd primes

How to prove that all odd numbers are prime ?
Well, this problem has different solutions whether you are a:
Mathematician:
3 is prime, 5 is prime, 7 is prime, and by induction we have that all the odd integers are prime.
Physicist:
3 is prime, 5 is prime, 7 is prime, 9 is an experimental error...
Engineer:
3 is prime, 5 is prime, 7 is prime, 9 is prime...
Chemist:
3 is prime, 5 is prime... hey, let's publish!
Modern physicist using renormalization:
3 is prime, 5 is prime, 7 is prime, 9 is ... 9/3 is prime, 11 is prime, 13 is prime, 15 is ... 15/3 is prime, 17 is prime, 19 is prime, 21 is ... 21/3 is prime...
Quantum Physicist:
All numbers are equally prime and non-prime until observed.
Professor:
3 is prime, 5 is prime, 7 is prime, and the rest are left as an exercise for the student.

[IshangoBone.gif]
The Ishango bones, maybe the first compilation of prime numbers ever.

Left: The Ishango bones, maybe the first compilation of prime numbers ever.

Confused Undergraduate:
Let p be any prime number larger than 2. Then p is not divisible by 2, so p is odd. QED
Measure nontheorist:
There are exactly as many odd numbers as primes (Euclid, Cantor), and exactly one even prime (namely 2), so there must be exactly one odd nonprime (namely 1).
Cosmologist:
3 is prime, yes it is true....
Computer Scientist:
10 is prime, 11 is prime, 101 is prime...
Programmer:
3 is prime, 5 is prime, 7 is prime, 9 will be fixed in the next release, ...
C programmer:
03 is prime, 05 is prime, 07 is prime, 09 is really 011 which everyone knows is prime, ...
BASIC programmer:
What's a prime?
COBOL programmer:
What's an odd number?
Windows programmer:
3 is prime. Wait...
Mac programmer:
Now why would anyone want to know about that? That's not user friendly. You don't worry about it, we'll take care of it for you.
Bill Gates:
1. No one will ever need any more than 3.
From the excellent XKCD webcomic.
ZX-81 Computer Programmer:
3 is prime, Out of Memory.
Pentium owner:
3 is prime, 5 is prime, 7 is prime, 8.9999978 is prime...
GNU programmer:
% prime
usage: prime [-nV] [--quiet] [--silent] [--version] [-e script] --catenate --concatenate | c --create | d --diff --compare | r --append | t --list | u --update | x -extract --get [ --atime-preserve ] [ -b, --block-size N ] [ -B, --read-full-blocks ] [ -C, --directory DIR ] [--checkpoint ] [ -f, --file [HOSTNAME:]F ] [ --force-local ] [ -F, --info-script F --new-volume-script F ] [-G, --incremental ] [ -g, --listed-incremental F ] [ -h, --dereference ] [ -i, --ignore-zeros ] [ --ignore-failed-read ] [ -k, --keep-old-files ] [ -K, --starting-file F ] [ -l, --one-file-system ] [ -L, --tape-length N ] [ -m, --modification-time ] [ -M, --multi-volume ] [ -N, --after-date DATE, --newer DATE ] [ -o, --old-archive, --portability ] [ -O, --to-stdout ] [ -p, --same-permissions, --preserve-permissions ] [ -P, --absolute-paths ] [ --preserve ] [ -R, --record-number ] [ [-f script-file] [--expression=script] [--file=script-file] [file...]
prime: you must specify exactly one of the r, c, t, x, or d options
For more information, type "prime --help''
Unix programmer:
3 is prime, 5 is prime, 7 is prime, ...
Segmentation fault, Core dumped.
Computer programmer:
3 is prime, 5 is prime, 7 is prime, 9 is prime, 9 is prime, 9 is prime, 9 is ...
Oops, let's try that again:
3 is prime, 5 is prime, 7 is prime, 9 is ... 3 is prime, 5 is prime, 7 is prime, 9 is ... 3 is ...
Um, right. Okay, how about this:
3 is not prime, 5 is not prime, 7 is not prime, 9 is not prime...
So much for the beta releases. Ship this:
3 is prime, 5 is prime, 7 is prime, 9 is a feature, 11 is prime...
and put on the cover "More prime numbers than anyone else in the industry !"
Coming soon:
3 is a prime, 4 is a feature, 5 is a prime, 6 is a feature, 7 is a prime, 8 is not yet implemented, 9 is our backwards compatibility module, ...
Computational linguist:
3 is an odd prime, 5 is an odd prime, 7 is an odd prime, 9 is a very odd prime, ...
Software tech support operator:
Well, we haven't had any reports of composite odd numbers... do you have the latest version of ZFC?
Minesweeper addict
1 is green, 2 is blue, 3 is orange, 4 is red...
Logician:
Hypothesis: All odd numbers are prime
Proof:
  1. If a proof exists, then the hypothesis must be true
  2. The proof exists; you're reading it now.
From 1 and 2 follows that all odd numbers are prime
Linguist:
3 is prime, 5 is prime, 7 is prime, 9 aaah. I can make 9 a prime.
Philosopher:
Why don't we just call all the odd numbers prime and call all the prime numbers odd, that way all the odd numbers would be prime
Philosopher (2):
3 is prime. Hum, that's an interesting statement, I'll get one of my research students to look into that.
Economist:
Assume 9 is prime...
Economist (2):
2 is a prime, 4 is a prime.
Economist (3):
2 is even, 4 is even, 6 is even...
Economist (4):
3 is prime, 5 is prime, 7 is prime, 9 is not prime. Look, the prime rate is dropping.
Statistician:
100% of the sample 5, 13, 37, 41 and 53 is prime, so all odd numbers must be prime.
Mechanical Statistician:
3 is prime, 5 is prime, 7 is prime, 9 is an outlier, 11 is prime, 13 is prime...
English major:
What's a prime number ?
Politician:
What's a number ?
Politician (2):
It depends on what the meaning of is is.
Philosophy major:
What is ?
Athletic scholarship:
What !?
Mid-level manager:
3 is prime, 5 is prime, 7 is prime, 9 is... Who can I delegate this to ?
Lawyer:
3 is prime, 5 is prime, 7 is prime, although there appears to be prima facie evidence that 9 is not prime, there exists substantial precedent to indicate that nine should be considered prime. The following brief presents the case for nine's primeness ...
Salesman:
3 is prime, 5 is prime, 7 is prime, and with 9 you get five excellent primes for the price of three !
Anthropologist:
Prime or not, every number is unique. Take 9 for example...
Liberal:
The fact that nine is not prime indicates a deprived cultural environment which can only be remedied by a federally funded cultural enrichment program.
Bush:
What's nine got against being prime? I'll bet it won't allow the pledge of allegiance to be said in our schools either.
Nixon:
Put nine on the enemies list. I'm gonna get that number.
New Yorker:
3 is prime, 5 is prime, 7 is prime, 9 is ... NONE OF YOUR DAMN BUSINESS!
rec.humor poster:
3 is prime, 3 is prime, 3 is prime, 3 is prime
지역태그 : 미국>뉴저지

출처 및 테스트해보기 : http://aquaerian.cafe24.com/imgphp/althsu.html

먼저해보신 : http://2nd.mangnany.com/246

 

 

1. 케이

로리스타일이군요 (....)

 

 

 

 

2. 케이군

 

이번엔 네코짱 스타일 (....)

 

 

3. K

 

ㅎㅎ 조금 어울리는듯한 캐릭터임

바보 (...)

 

 

4. Kay

 

너무 활발해보이는 캐릭터는 나와 거리가 아주 먼 (....)

 

지역태그 : 미국>뉴저지