<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>cson blog</title>
	<atom:link href="http://csonmatdis.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://csonmatdis.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 14 Dec 2009 16:57:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='csonmatdis.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>cson blog</title>
		<link>http://csonmatdis.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://csonmatdis.wordpress.com/osd.xml" title="cson blog" />
	<atom:link rel='hub' href='http://csonmatdis.wordpress.com/?pushpress=hub'/>
		<item>
		<title>My Reference (app in prolog)</title>
		<link>http://csonmatdis.wordpress.com/2009/12/14/my-reference-app-in-prolog/</link>
		<comments>http://csonmatdis.wordpress.com/2009/12/14/my-reference-app-in-prolog/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 16:57:20 +0000</pubDate>
		<dc:creator>csonmatdis</dc:creator>
				<category><![CDATA[Expert System Design]]></category>

		<guid isPermaLink="false">http://csonmatdis.wordpress.com/?p=152</guid>
		<description><![CDATA[Program ini adalah program untuk merujukkan buku bagi mahasiswa dengan program studi masing-masing pertama-tama, ketik program pada notepad sebagai berikut Program ini dapat merujukkan mahasiswa kepada buku yang ingin diperoleh outputnya adalah: Untuk program yang kedua ini berfungsi untuk mengetahui profil dari buku ketik program pada notepad sebagai berikut: outputnya adalah: Program yang ketiga ini [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=csonmatdis.wordpress.com&amp;blog=9747570&amp;post=152&amp;subd=csonmatdis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Program ini adalah program untuk merujukkan buku bagi mahasiswa dengan program studi masing-masing</p>
<p>pertama-tama, ketik program pada notepad sebagai berikut</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/12/picture1-fp7.jpg"><img class="aligncenter size-full wp-image-153" title="Picture1 FP7" src="http://csonmatdis.files.wordpress.com/2009/12/picture1-fp7.jpg?w=390&#038;h=136" alt="" width="390" height="136" /></a></p>
<p>Program ini dapat merujukkan mahasiswa kepada buku yang ingin diperoleh</p>
<p>outputnya adalah:</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/12/picture1-fp7.jpg"></a><a href="http://csonmatdis.files.wordpress.com/2009/12/picture2-fp7.jpg"><img class="aligncenter size-full wp-image-154" title="Picture2 FP7" src="http://csonmatdis.files.wordpress.com/2009/12/picture2-fp7.jpg?w=390&#038;h=203" alt="" width="390" height="203" /></a></p>
<p>Untuk program yang kedua ini berfungsi untuk mengetahui profil dari buku</p>
<p>ketik program pada notepad sebagai berikut:</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/12/picture3-fp7.jpg"><img class="aligncenter size-full wp-image-155" title="Picture3 FP7" src="http://csonmatdis.files.wordpress.com/2009/12/picture3-fp7.jpg?w=390&#038;h=135" alt="" width="390" height="135" /></a></p>
<p>outputnya adalah:</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/12/picture4-fp7.jpg"><img class="aligncenter size-full wp-image-156" title="Picture4 FP7" src="http://csonmatdis.files.wordpress.com/2009/12/picture4-fp7.jpg?w=390&#038;h=228" alt="" width="390" height="228" /></a></p>
<p>Program yang ketiga ini sama seperti program pertama, namun inputan untuk syarat up date tahun tidak statis (1997) melainkan dinamis (terserah user). Berikut adalah program untuk inputan syarat up date tahun 2005</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/12/picture5-fp7.jpg"><img class="aligncenter size-full wp-image-157" title="Picture5 FP7" src="http://csonmatdis.files.wordpress.com/2009/12/picture5-fp7.jpg?w=390&#038;h=149" alt="" width="390" height="149" /></a></p>
<p>outputnya adalah</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/12/picture6-fp7.jpg"><img class="aligncenter size-full wp-image-158" title="Picture6 FP7" src="http://csonmatdis.files.wordpress.com/2009/12/picture6-fp7.jpg?w=390&#038;h=162" alt="" width="390" height="162" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/csonmatdis.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/csonmatdis.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/csonmatdis.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/csonmatdis.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/csonmatdis.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/csonmatdis.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/csonmatdis.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/csonmatdis.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/csonmatdis.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/csonmatdis.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/csonmatdis.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/csonmatdis.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/csonmatdis.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/csonmatdis.wordpress.com/152/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=csonmatdis.wordpress.com&amp;blog=9747570&amp;post=152&amp;subd=csonmatdis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://csonmatdis.wordpress.com/2009/12/14/my-reference-app-in-prolog/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d0064c541d746cf2f7954754de191b5f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">csonmatdis</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/12/picture1-fp7.jpg" medium="image">
			<media:title type="html">Picture1 FP7</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/12/picture2-fp7.jpg" medium="image">
			<media:title type="html">Picture2 FP7</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/12/picture3-fp7.jpg" medium="image">
			<media:title type="html">Picture3 FP7</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/12/picture4-fp7.jpg" medium="image">
			<media:title type="html">Picture4 FP7</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/12/picture5-fp7.jpg" medium="image">
			<media:title type="html">Picture5 FP7</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/12/picture6-fp7.jpg" medium="image">
			<media:title type="html">Picture6 FP7</media:title>
		</media:content>
	</item>
		<item>
		<title>INPUT AND OUTPUT in Prolog (chapter 6)</title>
		<link>http://csonmatdis.wordpress.com/2009/12/08/input-and-output-in-prolog-chapter-6/</link>
		<comments>http://csonmatdis.wordpress.com/2009/12/08/input-and-output-in-prolog-chapter-6/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 13:26:42 +0000</pubDate>
		<dc:creator>csonmatdis</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://csonmatdis.wordpress.com/?p=140</guid>
		<description><![CDATA[(1) Define a predicate to output the values of the squares of the integers from N1 to N2 inclusive and test it with N1 = 6 and N2 = 12. langkah-langkah: 1. ketik pada notepad seperti berikut, lalu ubah dengan format.pl 2. Buka program tersebut (.pl) 3. lalu ketik &#8220;outsquare (2,8).&#8221; lalu tekan enter &#8212;&#62;ini [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=csonmatdis.wordpress.com&amp;blog=9747570&amp;post=140&amp;subd=csonmatdis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote><p><strong>(1) Define a predicate to output the values of the squares of the integers from N1 to<br />
N2 inclusive and test it with N1 = 6 and N2 = 12.</strong></p></blockquote>
<p>langkah-langkah:</p>
<p>1. ketik pada notepad seperti berikut, lalu ubah dengan format.pl</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/12/picture12.jpg"><img class="aligncenter size-full wp-image-141" title="Picture1" src="http://csonmatdis.files.wordpress.com/2009/12/picture12.jpg?w=390&#038;h=201" alt="" width="390" height="201" /></a>2. Buka program tersebut (.pl)</p>
<p>3. lalu ketik &#8220;outsquare (2,8).&#8221; lalu tekan enter &#8212;&gt;ini untuk menampilkan 2 kuadrat sampai 8 kuadrat.</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/12/picture21.jpg"><img class="aligncenter size-full wp-image-142" title="Picture2" src="http://csonmatdis.files.wordpress.com/2009/12/picture21.jpg?w=390&#038;h=236" alt="" width="390" height="236" /></a></p>
<blockquote><p><strong>(2) Define and test a predicate to read in a series of characters input by the user and<br />
output all of those before the first new line or ? character.</strong></p></blockquote>
<p>Langkah-langkah :</p>
<p>1. ketik pada notepad sperti berikut, lalu ubah dengan format.pl</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/12/picture32.jpg"><img class="aligncenter size-full wp-image-143" title="Picture3" src="http://csonmatdis.files.wordpress.com/2009/12/picture32.jpg?w=390&#038;h=201" alt="" width="390" height="201" /></a>2. Buka program tersebut (.pl)</p>
<p>3. lalu ketik perintah &#8220;go.&#8221;</p>
<p>4. masukkan data yang diinginkan dalam format &#8220;_?&#8221; atau &#8220;_ _?_&#8221; atau terserah Anda (nb: &#8220;_&#8221;=data )</p>
<p>5. program ini akan menampilkan data sebelum tanda tanya (?)</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/12/picture41.jpg"><img class="aligncenter size-full wp-image-144" title="Picture4" src="http://csonmatdis.files.wordpress.com/2009/12/picture41.jpg?w=390&#038;h=217" alt="" width="390" height="217" /></a></p>
<blockquote><p>(3) Using the person clauses given in Section 6.3.1, find the professions of all<br />
those over 40.</p></blockquote>
<p>Langkah-langkah :</p>
<p>1. ketik pada notepad sperti berikut, lalu ubah dengan format.pl</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/12/picture51.jpg"><img class="aligncenter size-full wp-image-147" title="Picture5" src="http://csonmatdis.files.wordpress.com/2009/12/picture51.jpg?w=390&#038;h=201" alt="" width="390" height="201" /></a></p>
<p>2. Buka program tersebut (.pl)</p>
<p>3. lalu ketik perintah &#8220;find.&#8221;</p>
<p>4. program ini hanya akan menampilkan data dengan NRP lebih dari 90</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/12/picture61.jpg"><img class="aligncenter size-full wp-image-148" title="Picture6" src="http://csonmatdis.files.wordpress.com/2009/12/picture61.jpg?w=390&#038;h=228" alt="" width="390" height="228" /></a></p>
<p><strong>THAT&#8217;S ALL</strong></p>
<p><strong><br />
</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/csonmatdis.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/csonmatdis.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/csonmatdis.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/csonmatdis.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/csonmatdis.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/csonmatdis.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/csonmatdis.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/csonmatdis.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/csonmatdis.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/csonmatdis.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/csonmatdis.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/csonmatdis.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/csonmatdis.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/csonmatdis.wordpress.com/140/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=csonmatdis.wordpress.com&amp;blog=9747570&amp;post=140&amp;subd=csonmatdis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://csonmatdis.wordpress.com/2009/12/08/input-and-output-in-prolog-chapter-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d0064c541d746cf2f7954754de191b5f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">csonmatdis</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/12/picture12.jpg" medium="image">
			<media:title type="html">Picture1</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/12/picture21.jpg" medium="image">
			<media:title type="html">Picture2</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/12/picture32.jpg" medium="image">
			<media:title type="html">Picture3</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/12/picture41.jpg" medium="image">
			<media:title type="html">Picture4</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/12/picture51.jpg" medium="image">
			<media:title type="html">Picture5</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/12/picture61.jpg" medium="image">
			<media:title type="html">Picture6</media:title>
		</media:content>
	</item>
		<item>
		<title>Resume About Chapter 6</title>
		<link>http://csonmatdis.wordpress.com/2009/12/08/resume-about-chapter-6/</link>
		<comments>http://csonmatdis.wordpress.com/2009/12/08/resume-about-chapter-6/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 03:21:23 +0000</pubDate>
		<dc:creator>csonmatdis</dc:creator>
				<category><![CDATA[Literature Review]]></category>

		<guid isPermaLink="false">http://csonmatdis.wordpress.com/?p=122</guid>
		<description><![CDATA[Loops Kebanyakan bahasa pemrograman konvensional memiliki fasilitas perulangan yang memungkinkan set instruksi yang akan dieksekusi berulang-ulang tetap baik beberapa kali atau sampai kondisi tertentu terpenuhi. Meskipun, seperti yang ditunjukkan dalam pendahuluan ini buku, Prolog tidak memiliki fasilitas perulangan, efek yang sama dapat diperoleh yang memungkinkan seorang urutan tujuan untuk dievaluasi berulang kali. Hal ini dapat [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=csonmatdis.wordpress.com&amp;blog=9747570&amp;post=122&amp;subd=csonmatdis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote><p><strong>Loops</strong></p></blockquote>
<p>Kebanyakan bahasa pemrograman konvensional memiliki fasilitas perulangan yang memungkinkan<br />
set instruksi yang akan dieksekusi berulang-ulang tetap baik beberapa kali atau sampai<br />
kondisi tertentu terpenuhi. Meskipun, seperti yang ditunjukkan dalam pendahuluan ini<br />
buku, Prolog tidak memiliki fasilitas perulangan, efek yang sama dapat diperoleh yang memungkinkan seorang<br />
urutan tujuan untuk dievaluasi berulang kali. Hal ini dapat dilakukan dalam berbagai<br />
cara, menggunakan backtracking, rekursi, built-in predikat, atau kombinasi dari semuanya.</p>
<blockquote><p><strong><br />
</strong></p></blockquote>
<li><strong>Looping a Fixed Number of Times</strong></li>
<p>Banyak bahasa pemrograman menyediakan &#8216;untuk loop&#8217; yang memungkinkan satu set instruksi<br />
akan dieksekusi tetap beberapa kali. Tidak ada fasilitas tersebut tersedia dalam Prolog<br />
(langsung), tetapi efek yang sama dapat diperoleh dengan menggunakan rekursi, seperti ditunjukkan dalam<br />
contoh program di bawah ini.</p>
<p>Contoh 1<br />
Keluaran program berikut bilangan bulat dari nilai tertentu ke 1.</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/12/picture11.jpg"><img class="aligncenter size-full wp-image-124" title="Picture1" src="http://csonmatdis.files.wordpress.com/2009/12/picture11.jpg?w=390&#038;h=227" alt="" width="390" height="227" /></a>Predikat loop didefinisikan dalam istilah itu sendiri. Kalimat kedua dapat<br />
dianggap sebagai: &#8216;untuk loop dari N, pertama menulis nilai N, kemudian kurangi satu untuk memberikan<br />
M, kemudian loop dari M &#8216;. Proses ini jelas harus dihentikan dan ini<br />
dicapai oleh klausa pertama: &#8216;ketika argumen adalah nol, melakukan apa-apa (dan karenanya<br />
berhenti) &#8216;. Klausa pertama dapat dianggap sebagai suatu kondisi untuk menghentikan rekursi.</p>
<p><em>?- loop(6).<br />
The value is: 6<br />
The value is: 5<br />
The value is: 4<br />
The value is: 3<br />
The value is: 2<br />
The value is: 1</em></p>
<p>yes</p>
<p>perhatikan penggunaan dua gol M adalah N-1, loop (M) dalam kalimat kedua untuk<br />
loop predikat. Alternatif yang jelas loop (N-1) tidak akan bekerja. Prolog hanya<br />
mengevaluasi pernyataan seperti N-1 ketika mengevaluasi tujuan dengan atau functor adalah salah satu dari<br />
operator relasional, seperti dijelaskan dalam Bab 4. N-1 jika digunakan sebagai argumen<br />
suatu predikat itu diartikan istilah dengan infiks operator &#8211; (yaitu tanda minus) dan<br />
argumen N dan 1. Ini sangat tidak mungkin apa yang dimaksudkan!</p>
<p>Contoh 2<br />
Program berikutnya keluaran bilangan bulat dari awal ke akhir inklusif.</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/12/picture2.jpg"><img class="aligncenter size-full wp-image-125" title="Picture2" src="http://csonmatdis.files.wordpress.com/2009/12/picture2.jpg?w=390&#038;h=205" alt="" width="390" height="205" /></a><em>Here output_values has two arguments, which can be read as &#8216;output the<br />
integers from First to Last inclusive&#8217;. The loop terminates when both arguments are<br />
the same.</em></p>
<p><em>?- output_values(5,12).<br />
5</em></p>
<p><em>6</em></p>
<p><em>7</em></p>
<p><em>8</em></p>
<p><em>9<br />
10<br />
11<br />
12<br />
end of example</em></p>
<p>Contoh 3<br />
Tentukan sebuah predikat untuk menemukan jumlah bilangan bulat dari 1 sampai N (katakanlah untuk N = 100).<br />
Adalah wajar untuk memikirkan secara prosedural ini, yaitu mulai dengan 1, kemudian tambahkan 2, kemudian tambahkan 3,<br />
kemudian tambahkan 4, &#8230;, kemudian tambahkan 100. Namun proses ini lebih mudah program jika reexpressed<br />
declaratively dalam hal itu sendiri.<br />
Jumlah dari 100 bilangan bulat yang pertama adalah jumlah dari 99 bilangan bulat yang pertama, ditambah 100.<br />
Jumlah dari 99 bilangan bulat yang pertama adalah jumlah dari 98 bilangan bulat yang pertama, ditambah 99.<br />
Jumlah dari 98 bilangan bulat yang pertama adalah jumlah dari 97 bilangan bulat yang pertama, ditambah 98.</p>
<p>Jumlah dari 3 bilangan bulat pertama adalah jumlah dari 2 bilangan bulat pertama, ditambah 3.<br />
Jumlah dari 2 bilangan bulat pertama adalah jumlah dari 1 bilangan bulat pertama, ditambah 2.<br />
Jumlah 1 bilangan bulat pertama adalah satu.<br />
Ada dua kasus yang berbeda untuk mempertimbangkan: kasus umum: &#8216;jumlah pertama<br />
N bilangan bulat adalah jumlah dari N-1 pertama bilangan bulat, ditambah N &#8216;dan kasus mengakhiri:&#8217; yang<br />
jumlah 1 bilangan bulat pertama adalah 1 &#8216;. Ini mengarah langsung ke definisi rekursif:<br />
<a href="http://csonmatdis.files.wordpress.com/2009/12/picture31.jpg"><img class="aligncenter size-full wp-image-127" title="Picture3" src="http://csonmatdis.files.wordpress.com/2009/12/picture31.jpg?w=390&#038;h=201" alt="" width="390" height="201" /></a><em>output :</em></p>
<p><em>?- sumto(100,N).<br />
N = 5050<br />
?- sumto(1,1).<br />
yes</em></p>
<p>Perhatikan bahwa menggunakan N1 variabel tambahan untuk menyimpan nilai N-1 adalah<br />
penting. Menulis sumto (N-1, S1), dll bukannya tidak akan bekerja dengan benar. N-1 adalah<br />
istilah, bukan nilai numerik.</p>
<blockquote><p><strong>Looping Until a Condition Is Satisfied</strong></p></blockquote>
<p>Banyak bahasa memiliki sebuah &#8216;sampai loop&#8217; yang memungkinkan sebuah set instruksi yang akan<br />
dieksekusi berulang kali sampai kondisi tertentu terpenuhi. Sekali lagi, tidak ada fasilitas seperti<br />
tersedia secara langsung di Prolog, tetapi efek yang sama dapat diperoleh dengan beberapa cara.</p>
<li><strong>Rekursi</strong></li>
<p>Contoh pertama di bawah ini menunjukkan penggunaan istilah rekursi untuk membaca dimasukkan oleh<br />
pengguna dari keyboard dan output mereka ke layar, sampai akhir dijumpai<a href="http://csonmatdis.files.wordpress.com/2009/12/picture4.jpg"><img class="aligncenter size-full wp-image-128" title="Picture4" src="http://csonmatdis.files.wordpress.com/2009/12/picture4.jpg?w=390&#038;h=201" alt="" width="390" height="201" /></a><em>?- go.<br />
Type end to end: university.<br />
Input was university<br />
Type end to end: of.<br />
Input was of<br />
Type end to end: portsmouth.<br />
Input was portsmouth<br />
Type end to end: end.<br />
Input was end<br />
yes</em></p>
<p>Menggunakan pemisahan operator; / 2 yang disebutkan dalam Pasal di atas 4,4</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/12/picture5.jpg"><img class="aligncenter size-full wp-image-129" title="Picture5" src="http://csonmatdis.files.wordpress.com/2009/12/picture5.jpg?w=390&#038;h=201" alt="" width="390" height="201" /></a></p>
<p><em>The &#8216;disjunctive goal&#8217; (Word=end;loop) succeeds if variable Word is bound to</em></p>
<p><em>the atom end. If not, the system attempts to satisfy the goal loop recursively.</em></p>
<p><em>?- loop.</em></p>
<p><em>Type end to end: university.</em></p>
<p><em>Input was university</em></p>
<p><em>Type end to end: of.</em></p>
<p><em>Input was of</em></p>
<p><em>Type end to end: portsmouth.</em></p>
<p><em>Input was portsmouth</em></p>
<p><em>Type end to end: end.</em></p>
<p><em>Input was end</em></p>
<p><em>yes</em></p>
<p>Program rekursif ini berulang kali mendorong pengguna untuk memasukkan istilah sampai baik<br />
ya atau tidak dimasukkan.</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/12/picture6.jpg"><img class="aligncenter size-full wp-image-130" title="Picture6" src="http://csonmatdis.files.wordpress.com/2009/12/picture6.jpg?w=390&#038;h=201" alt="" width="390" height="201" /></a><em>?- get_answer(Myanswer).<br />
Enter answer to question<br />
answer yes or no: maybe.<br />
answer yes or no: possibly.<br />
answer yes or no: yes.<br />
Answer is yes<br />
Myanswer = yes</em></p>
<li><strong>Using the &#8216;repeat&#8217; Predicate</strong></li>
<p>Meskipun sering dapat digunakan untuk efek yang besar, rekursi tidak selalu yang paling mudah<br />
cara untuk menyediakan jenis perulangan yang diperlukan dalam program Prolog. Metode lain<br />
yang sering digunakan adalah berdasarkan pada built-in predikat ulangi.<br />
Nama predikat ini benar-benar sebuah ironi. Tujuan tidak mengulangi<br />
mengulangi apa pun; itu hanya berhasil setiap kali disebut. Nilai besar mengulang<br />
adalah bahwa hal itu juga berhasil (sebanyak yang diperlukan) pada kemunduran. Efek<br />
ini, seperti untuk tujuan lainnya berhasil, adalah untuk mengubah urutan mengevaluasi tujuan<br />
dari &#8220;kanan ke kiri &#8216;(yaitu backtracking) kembali ke&#8217; kiri-ke-kanan &#8216;. Ini dapat digunakan untuk<br />
menciptakan efek perulangan, seperti ditunjukkan pada contoh di bawah ini.<br />
Program ini berulang kali mendorong pengguna untuk memasukkan istilah sampai entah ya atau tidak<br />
dimasukkan. Ini adalah alternatif dari program rekursif ditampilkan di bagian akhir<br />
bagian sebelumnya. Dalam hal ini masih diperdebatkan apakah menggunakan mengulang adalah<br />
perbaikan menggunakan rekursi, tetapi contoh adalah termasuk untuk tujuan<br />
ilustrasi.</p>
<p>Program ini menunjukkan bagaimana untuk mengimplementasikan suatu struktur menu yang loop kembali<br />
berulang kali untuk meminta lebih banyak masukan. Memasuki pergi pada prompt menyebabkan Prolog untuk output<br />
menu dari mana pengguna dapat memilih satu kegiatan pada satu waktu sampai opsi d adalah<br />
dipilih. Perhatikan bahwa semua input adalah istilah-istilah dan harus diikuti oleh sebuah titik<br />
karakter.</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/12/picture7.jpg"><img class="aligncenter size-full wp-image-131" title="Picture7" src="http://csonmatdis.files.wordpress.com/2009/12/picture7.jpg?w=390&#038;h=201" alt="" width="390" height="201" /></a>output:</p>
<p><em>?- go.<br />
This shows how a repeated menu works<br />
MENU<br />
a. Activity A<br />
b. Activity B<br />
c. Activity C<br />
d. End<br />
: b.<br />
Activity B chosen<br />
MENU<br />
a. Activity A<br />
b. Activity B<br />
c. Activity C<br />
d. End<br />
: xxx.<br />
Please try again!<br />
MENU<br />
a. Activity A<br />
b. Activity B<br />
c. Activity C<br />
d. End<br />
: d.<br />
Goodbye!<br />
yes</em></p>
<blockquote><p><em><strong>Backtracking with Failure</strong></em></p></blockquote>
<p class="MsoNormal"><span class="longtext"><span style="background:white none repeat scroll 0 0;">Seperti namanya, predikat gagal selalu gagal, apakah pada &#8216;standar&#8217; </span></span><span style="background:white none repeat scroll 0 0;"><br />
<span class="longtext">evaluasi kiri-ke-kanan atau pada kemunduran. </span></span><span class="longtext">Keuntungan dapat diambil dari ini, </span><br />
<span class="longtext"><span style="background:white none repeat scroll 0 0;">dikombinasikan dengan otomatis Prolog backtracking, untuk pencarian melalui database untuk </span></span><span style="background:white none repeat scroll 0 0;"><br />
<span class="longtext">menemukan semua klausa dengan properti tertentu.</span></span></p>
<ul>
<li><span style="background:white none repeat scroll 0 0;"><span class="longtext"><strong>Searching the Prolog Database</strong></span></span></li>
</ul>
<p><!--[if gte mso 9]&gt;     &lt;![endif]--><!--[if gte mso 9]&gt;  Normal 0     false false false  IN X-NONE X-NONE                           &lt;![endif]--><!--[if gte mso 9]&gt;                                                                                                                                            &lt;![endif]--><br />
<span class="longtext"><span style="background:white none repeat scroll 0 0;font-size:11pt;font-family:&amp;">Contoh program ini  dirancang untuk mencari database yang berisi klausa </span></span><span style="background:white none repeat scroll 0 0;font-size:11pt;font-family:&amp;"><br />
<span class="longtext">mewakili nama, umur, tempat tinggal dan pekerjaan sejumlah </span><br />
</span><span class="longtext"><span style="font-size:11pt;font-family:&amp;">orang-orang. </span></span><span style="font-size:11pt;font-family:&amp;"><br />
<span class="longtext"><span style="background:white none repeat scroll 0 0;">Jika database berisi lima klausa </span></span></span></p>
<p><span style="font-size:11pt;font-family:&amp;"><span class="longtext"><span style="background:white none repeat scroll 0 0;"> </span></span><span style="background:white none repeat scroll 0 0;"><span class="longtext"><a href="http://csonmatdis.files.wordpress.com/2009/12/picture9.jpg"><img class="aligncenter size-full wp-image-133" title="Picture9" src="http://csonmatdis.files.wordpress.com/2009/12/picture9.jpg?w=390&#038;h=201" alt="" width="390" height="201" /></a></span></span></span></p>
<p><!--[if gte mso 9]&gt;     &lt;![endif]--><!--[if gte mso 9]&gt;  Normal 0     false false false  IN X-NONE X-NONE                           &lt;![endif]--><!--[if gte mso 9]&gt;                                                                                                                                            &lt;![endif]--><br />
<span class="longtext"><span style="background:white none repeat scroll 0 0;font-size:11pt;font-family:&amp;">Nama semua guru dapat ditemukan dengan menggunakan allteachers predicate. </span></span></p>
<p><span class="longtext"><span style="background:white none repeat scroll 0 0;font-size:11pt;font-family:&amp;"><a href="http://csonmatdis.files.wordpress.com/2009/12/picture8.jpg"><img class="aligncenter size-full wp-image-132" title="Picture8" src="http://csonmatdis.files.wordpress.com/2009/12/picture8.jpg?w=390&#038;h=201" alt="" width="390" height="201" /></a><em>The effect of using backtracking with failure in this case is to find all the<br />
teachers in the database.</em></span></span></p>
<p><span class="longtext"><span style="background:white none repeat scroll 0 0;font-size:11pt;font-family:&amp;"><em><br />
?- allteachers.<br />
martin williams<br />
jane wilson<br />
yes</em><br />
</span></span></p>
<ul>
<li><strong>Finding Multiple Solutions</strong></li>
</ul>
<p><span class="longtext"><span style="background:white none repeat scroll 0 0;font-size:11pt;font-family:&amp;">Backtracking dengan kegagalan juga dapat digunakan untuk mencari semua cara untuk memuaskan tujuan. </span></span><span style="background:white none repeat scroll 0 0;font-size:11pt;font-family:&amp;"><br />
<span class="longtext">Misalkan sebuah predikat findroute (Town1, Town2, Route) menemukan sebuah rute Route </span><br />
<span class="longtext">antara dua kota Town1 dan Town2. </span></span><span class="longtext"><span style="font-size:11pt;font-family:&amp;">Rincian predikat ini tidak relevan </span></span><span style="font-size:11pt;font-family:&amp;"><br />
<span class="longtext">di sini. <span style="background:white none repeat scroll 0 0;">Ini dapat diasumsikan bahwa Town1 dan Town2 adalah atom dan bahwa rute ini adalah daftar. </span></span><span style="background:white none repeat scroll 0 0;"><br />
<span class="longtext">Backtracking dengan kegagalan kemudian dapat digunakan untuk mencari semua kemungkinan rute antara </span><br />
<span class="longtext">Town1 dan Town2 dan menulis masing-masing satu di baris terpisah, sebagai berikut: </span></span></span></p>
<p><span style="font-size:11pt;font-family:&amp;"><span style="background:white none repeat scroll 0 0;"><span class="longtext"><a href="http://csonmatdis.files.wordpress.com/2009/12/picture10.jpg"><img class="aligncenter size-full wp-image-134" title="Picture10" src="http://csonmatdis.files.wordpress.com/2009/12/picture10.jpg?w=390&#038;h=201" alt="" width="390" height="201" /></a></span></span></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/csonmatdis.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/csonmatdis.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/csonmatdis.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/csonmatdis.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/csonmatdis.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/csonmatdis.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/csonmatdis.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/csonmatdis.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/csonmatdis.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/csonmatdis.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/csonmatdis.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/csonmatdis.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/csonmatdis.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/csonmatdis.wordpress.com/122/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=csonmatdis.wordpress.com&amp;blog=9747570&amp;post=122&amp;subd=csonmatdis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://csonmatdis.wordpress.com/2009/12/08/resume-about-chapter-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d0064c541d746cf2f7954754de191b5f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">csonmatdis</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/12/picture11.jpg" medium="image">
			<media:title type="html">Picture1</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/12/picture2.jpg" medium="image">
			<media:title type="html">Picture2</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/12/picture31.jpg" medium="image">
			<media:title type="html">Picture3</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/12/picture4.jpg" medium="image">
			<media:title type="html">Picture4</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/12/picture5.jpg" medium="image">
			<media:title type="html">Picture5</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/12/picture6.jpg" medium="image">
			<media:title type="html">Picture6</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/12/picture7.jpg" medium="image">
			<media:title type="html">Picture7</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/12/picture9.jpg" medium="image">
			<media:title type="html">Picture9</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/12/picture8.jpg" medium="image">
			<media:title type="html">Picture8</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/12/picture10.jpg" medium="image">
			<media:title type="html">Picture10</media:title>
		</media:content>
	</item>
		<item>
		<title>INPUT and OUTPUT in PROLOG</title>
		<link>http://csonmatdis.wordpress.com/2009/11/25/input-and-output-in-prolog/</link>
		<comments>http://csonmatdis.wordpress.com/2009/11/25/input-and-output-in-prolog/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 16:45:21 +0000</pubDate>
		<dc:creator>csonmatdis</dc:creator>
				<category><![CDATA[tutorial]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://csonmatdis.wordpress.com/?p=96</guid>
		<description><![CDATA[Soal 1 1. ketik soal di notepad, lalu simpan dengan format.pl Keterangan kode-kode dalam notepad: readline:-get0(P),process(P). get: berguna untuk mengonvert karakter menjadi kode ASCII process: berguna untuk memroses argumen yang dinyatakan. Kemudian ketik “case(P,Q):-P&#62;64,P&#60;91 is P+32” dan “case(P,Q):-Q is P+0.” Ini adalah kode-kode untuk menentukan kode bilangan ke huruf kecil. “process(P):-P=\=13,case(P,Q),put(Q),nl,readline.” Bagian ini untuk melakukan [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=csonmatdis.wordpress.com&amp;blog=9747570&amp;post=96&amp;subd=csonmatdis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote><p>Soal 1</p></blockquote>
<p>1. ketik soal di notepad, lalu simpan dengan format.pl</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/11/picture11.png"><img class="aligncenter size-full wp-image-97" title="Picture1" src="http://csonmatdis.files.wordpress.com/2009/11/picture11.png?w=390&#038;h=227" alt="" width="390" height="227" /></a></p>
<p>Keterangan kode-kode dalam notepad:</p>
<ul>
<li>readline:-get0(P),process(P). get: berguna untuk mengonvert karakter menjadi kode ASCII process: berguna untuk memroses argumen yang dinyatakan.</li>
</ul>
<ul>
<li>Kemudian ketik “case(P,Q):-P&gt;64,P&lt;91 is P+32” dan “case(P,Q):-Q is P+0.” Ini adalah kode-kode untuk menentukan kode bilangan ke huruf kecil.</li>
<li>“process(P):-P=\=13,case(P,Q),put(Q),nl,readline.” Bagian ini untuk melakukan proses.</li>
<li> Dan kode “nl” adalah perintah untuk ganti baris (berjajar secara vertikal).</li>
</ul>
<p>2. consult dalam program prolog.</p>
<p>3. ketik readline, kemudian tekan tombol enter</p>
<p>4. ketik kata yang anda inginkan, contoh dalam gambar : &#8220;csonmatdis&#8221;</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/11/picture21.png"><img class="aligncenter size-full wp-image-98" title="Picture2" src="http://csonmatdis.files.wordpress.com/2009/11/picture21.png?w=390&#038;h=220" alt="" width="390" height="220" /></a></p>
<blockquote><p>Soal 2</p></blockquote>
<p>1. Ketik seperti contoh dibawah ini kemudian save dengan nama “teks.txt”.</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/11/picture32.png"><img class="aligncenter size-full wp-image-99" title="Picture3" src="http://csonmatdis.files.wordpress.com/2009/11/picture32.png?w=390&#038;h=227" alt="" width="390" height="227" /></a></p>
<p>2. Convert kedalam format .pl</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/11/picture114.png"><img class="aligncenter size-full wp-image-100" title="Picture114" src="http://csonmatdis.files.wordpress.com/2009/11/picture114.png?w=390" alt=""   /></a>3. Consult pada prolog.</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/11/picture41.png"><img class="aligncenter size-full wp-image-101" title="Picture4" src="http://csonmatdis.files.wordpress.com/2009/11/picture41.png?w=390&#038;h=177" alt="" width="390" height="177" /></a>4. Maka otomatis terbentuk “output.txt” :</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/11/picture51.png"><img class="aligncenter size-full wp-image-102" title="Picture5" src="http://csonmatdis.files.wordpress.com/2009/11/picture51.png?w=390&#038;h=227" alt="" width="390" height="227" /></a></p>
<blockquote><p>Soal 3</p></blockquote>
<p>1. ketik pada notepad lalu ubah dengan format.pl</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/11/03_01.jpg"><img class="aligncenter size-full wp-image-103" title="03_01" src="http://csonmatdis.files.wordpress.com/2009/11/03_01.jpg?w=390&#038;h=223" alt="" width="390" height="223" /></a>2. lalu consult pada program prolog.</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/11/picture7.png"><img class="aligncenter size-full wp-image-104" title="Picture7" src="http://csonmatdis.files.wordpress.com/2009/11/picture7.png?w=390&#038;h=158" alt="" width="390" height="158" /></a></p>
<blockquote><p>soal 4</p></blockquote>
<p>1. ketik dalam notepad.</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/11/picture1a2.png"><img class="aligncenter size-full wp-image-107" title="Picture1a" src="http://csonmatdis.files.wordpress.com/2009/11/picture1a2.png?w=390&#038;h=227" alt="" width="390" height="227" /></a><a href="http://csonmatdis.files.wordpress.com/2009/11/picture1b.png"><img class="aligncenter size-full wp-image-108" title="Picture1b" src="http://csonmatdis.files.wordpress.com/2009/11/picture1b.png?w=390&#038;h=227" alt="" width="390" height="227" /></a>2. Kemudian ketik seperti ini namun dalam format (.pl).</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/11/picture10.png"><img class="aligncenter size-full wp-image-109" title="Picture10" src="http://csonmatdis.files.wordpress.com/2009/11/picture10.png?w=390&#038;h=236" alt="" width="390" height="236" /></a>3. Lalu jalankan program tersebut dalam prolog.</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/11/picture111.png"><img class="aligncenter size-full wp-image-110" title="Picture11" src="http://csonmatdis.files.wordpress.com/2009/11/picture111.png?w=390&#038;h=184" alt="" width="390" height="184" /></a></p>
<p>4. Dan output akan tersimpan otomatis dalam format ‘.txt’</p>
<blockquote><p>Soal 5</p></blockquote>
<p>1. ketik dalam notepad.</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/11/picture115.png"><img class="aligncenter size-full wp-image-111" title="Picture115" src="http://csonmatdis.files.wordpress.com/2009/11/picture115.png?w=390&#038;h=261" alt="" width="390" height="261" /></a><a href="http://csonmatdis.files.wordpress.com/2009/11/picture116.png"><img class="aligncenter size-full wp-image-112" title="Picture116" src="http://csonmatdis.files.wordpress.com/2009/11/picture116.png?w=390&#038;h=260" alt="" width="390" height="260" /></a>3. Lalu ketik sperti dibawah ini dalam format .pl</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/11/picture12.png"><img class="aligncenter size-full wp-image-113" title="Picture12" src="http://csonmatdis.files.wordpress.com/2009/11/picture12.png?w=390&#038;h=264" alt="" width="390" height="264" /></a>4. Lalu consult dalam program prolog</p>
<p><a href="http://csonmatdis.files.wordpress.com/2009/11/picture13.png"><img class="aligncenter size-full wp-image-114" title="Picture13" src="http://csonmatdis.files.wordpress.com/2009/11/picture13.png?w=390&#038;h=215" alt="" width="390" height="215" /></a></p>
<blockquote><p><strong>THAT&#8217;S ALL!!!^^</strong></p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/csonmatdis.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/csonmatdis.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/csonmatdis.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/csonmatdis.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/csonmatdis.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/csonmatdis.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/csonmatdis.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/csonmatdis.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/csonmatdis.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/csonmatdis.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/csonmatdis.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/csonmatdis.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/csonmatdis.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/csonmatdis.wordpress.com/96/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=csonmatdis.wordpress.com&amp;blog=9747570&amp;post=96&amp;subd=csonmatdis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://csonmatdis.wordpress.com/2009/11/25/input-and-output-in-prolog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d0064c541d746cf2f7954754de191b5f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">csonmatdis</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/11/picture11.png" medium="image">
			<media:title type="html">Picture1</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/11/picture21.png" medium="image">
			<media:title type="html">Picture2</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/11/picture32.png" medium="image">
			<media:title type="html">Picture3</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/11/picture114.png" medium="image">
			<media:title type="html">Picture114</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/11/picture41.png" medium="image">
			<media:title type="html">Picture4</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/11/picture51.png" medium="image">
			<media:title type="html">Picture5</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/11/03_01.jpg" medium="image">
			<media:title type="html">03_01</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/11/picture7.png" medium="image">
			<media:title type="html">Picture7</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/11/picture1a2.png" medium="image">
			<media:title type="html">Picture1a</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/11/picture1b.png" medium="image">
			<media:title type="html">Picture1b</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/11/picture10.png" medium="image">
			<media:title type="html">Picture10</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/11/picture111.png" medium="image">
			<media:title type="html">Picture11</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/11/picture115.png" medium="image">
			<media:title type="html">Picture115</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/11/picture116.png" medium="image">
			<media:title type="html">Picture116</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/11/picture12.png" medium="image">
			<media:title type="html">Picture12</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/11/picture13.png" medium="image">
			<media:title type="html">Picture13</media:title>
		</media:content>
	</item>
		<item>
		<title>resume</title>
		<link>http://csonmatdis.wordpress.com/2009/11/25/resume/</link>
		<comments>http://csonmatdis.wordpress.com/2009/11/25/resume/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 13:14:39 +0000</pubDate>
		<dc:creator>csonmatdis</dc:creator>
				<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://csonmatdis.wordpress.com/?p=94</guid>
		<description><![CDATA[SUMMARY FOR CHAPTER 5 Introduction Prolog has facilities to enable input and output either of terms or of characters. Using terms is simpler and will be described first. Initially, it will be assumed that all output is to the user&#8217;s screen and all input is from the user&#8217;s keyboard. Input and output using external files, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=csonmatdis.wordpress.com&amp;blog=9747570&amp;post=94&amp;subd=csonmatdis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><!-- 		@page { margin: 0.79in } 		P { margin-bottom: 0.08in } --><strong>SUMMARY FOR CHAPTER 5</strong></p>
<p><span style="font-family:Calibri,serif;"><span style="font-size:medium;"><strong>Introduction</strong></span></span></p>
<p><span style="font-family:Calibri,serif;">Prolog has facilities to enable input and output either of terms or of characters. Using terms is simpler and will be described first. Initially, it will be assumed that all output is to the user&#8217;s screen and all input is from the user&#8217;s keyboard. Input and output using external files, e.g. on a hard disk or CD-ROM. Note that, like many other built-in predicates, those for input and output described in this chapter are all  unresatisfiable, i.e. they always fail when backtracking.</span></p>
<p><span style="font-family:Calibri,serif;"><span style="font-size:medium;"><strong>a.  Outputting Terms</strong></span></span></p>
<p><span style="font-family:Calibri,serif;">The </span><span style="font-family:Calibri,serif;"><strong>write/1</strong></span><span style="font-family:Calibri,serif;"> predicate takes a single argument, which must be a valid Prolog term. Evaluating the predicate causes the term to be written to the current output stream, which by default is the user&#8217;s screen.</span></p>
<p><span style="font-family:Calibri,serif;">The built-in predicate </span><span style="font-family:Calibri,serif;"><strong>nl/0</strong></span><span style="font-family:Calibri,serif;"> has also been used many times previously in this book. It takes no arguments. Evaluating a </span><span style="font-family:Calibri,serif;"><strong>nl</strong></span><span style="font-family:Calibri,serif;"> goal causes a new line to be output to the current output stream.</span></p>
<p><span style="font-family:Calibri,serif;"><span style="font-size:medium;"><strong>b.  Inputting Terms</strong></span></span></p>
<p><span style="font-family:Calibri,serif;">The built-in predicate </span><span style="font-family:Calibri,serif;"><strong>read/1</strong></span><span style="font-family:Calibri,serif;"> is provided to input terms. It takes a single argument, which must be a variable.</span></p>
<p><span style="font-family:Calibri,serif;">In the input stream, the term must be followed by a dot (&#8216;.&#8217;) and at least one white space character, such as space or newline. The dot and white space characters are read in but are not considered part of the term.</span></p>
<p><span style="font-family:Calibri,serif;">When a </span><span style="font-family:Calibri,serif;"><strong>read</strong></span><span style="font-family:Calibri,serif;"> goal is evaluated, the input term is  unified with the argument variable. If the variable is unbound (which is usually the case) it is bound to the input value.</span></p>
<p><span style="font-family:Calibri,serif;">If the argument variable is already bound (which for most users is far more likely to occur by mistake than by design), the goal succeeds if and only if the input term is identical to the previously bound value.</span></p>
<p><span style="font-family:Calibri,serif;"><span style="font-size:medium;"><strong>c.  Input and Output Using Characters</strong></span></span></p>
<p><span style="font-family:Calibri,serif;">Although input and output of terms is straightforward, the use of quotes and full  stops can be cumbersome and is not always suitable. It would be tedious to define a predicate (using read). A much better approach for problems of this kind is to input a character at a time. To do this it is first necessary to know about the ASCII value of a character.</span></p>
<p><span style="font-family:Calibri,serif;">All printing characters and many non-printing characters (such as space and tab) have a corresponding ASCII (American Standard Code for Information Interchange) value, which is an integer from 0 to 255.</span></p>
<p><span style="font-family:Calibri,serif;"><span style="font-size:medium;"><strong>d.  Outputting Characters</strong></span></span></p>
<p><span style="font-family:Calibri,serif;">Characters are output using the built-in predicate </span><span style="font-family:Calibri,serif;"><strong>put/1</strong></span><span style="font-family:Calibri,serif;">. The predicate takes a single argument, which must be a number from 0 to 255 or an expression that </span></p>
<p><span style="font-family:Calibri,serif;">evaluates to an integer in that range. </span></p>
<p><span style="font-family:Calibri,serif;">Evaluating a </span><span style="font-family:Calibri,serif;"><strong>put</strong></span><span style="font-family:Calibri,serif;"> goal causes a single character to be output to the current </span></p>
<p><span style="font-family:Calibri,serif;">output stream. This is the character corresponding to the numerical value (ASCII </span></p>
<p><span style="font-family:Calibri,serif;">value) of its argument.</span></p>
<p><span style="font-family:Calibri,serif;"><span style="font-size:medium;"><strong>e.  Inputting Characters</strong></span></span></p>
<p><span style="font-family:Calibri,serif;">Two built-in predicates are provided to input a single character: </span><span style="font-family:Calibri,serif;"><strong>get0/1</strong></span><span style="font-family:Calibri,serif;"> and </span><span style="font-family:Calibri,serif;"><strong>get/1.</strong></span><span style="font-family:Calibri,serif;"> The </span><span style="font-family:Calibri,serif;"><strong>get0</strong></span><span style="font-family:Calibri,serif;"> predicate takes a single argument, which must be a variable. Evaluating a </span><span style="font-family:Calibri,serif;"><strong>get0</strong></span><span style="font-family:Calibri,serif;"> goal causes a character to be read from the current input stream. The variable is then unified with the ASCII value of this character.</span></p>
<p><span style="font-family:Calibri,serif;">Assuming the argument variable is unbound (which will usually be the case), it is bound to the ASCII value of the input character. If the argument variable is lready bound, the goal succeeds if and only if it has a numerical value that is equal to the ASCII value of the input character.</span></p>
<p><span style="font-family:Calibri,serif;"><span style="font-size:medium;"><strong>f.  Input and Output Using Files</strong></span></span></p>
<p><span style="font-family:Calibri,serif;">Prolog takes all input from the current input stream and writes all output to the current output stream. By default both of these are the stream named  user,</span></p>
<p><span style="font-family:Calibri,serif;">denoting the user&#8217;s terminal, i.e. keyboard for input and screen for output.</span></p>
<p><span style="font-family:Calibri,serif;">The user may open and close input and output streams associated with any </span></p>
<p><span style="font-family:Calibri,serif;">number of named files but there can only be one current input stream and one </span></p>
<p><span style="font-family:Calibri,serif;">current output stream at any time. Note that no file can be open for both input and </span></p>
<p><span style="font-family:Calibri,serif;">output at the same time (except user) and that the user input and output streams </span></p>
<p><span style="font-family:Calibri,serif;">cannot be closed</span></p>
<p><span style="font-family:Calibri,serif;"><span style="font-size:medium;"><strong>g.  File Output : Changing the Current Output Stream</strong></span></span></p>
<p><span style="font-family:Calibri,serif;">The current output stream can be changed using the </span><span style="font-family:Calibri,serif;"><strong>tell/1 </strong></span><span style="font-family:Calibri,serif;">predicate. This takes a single argument, which is an atom or variable representing a file name, e.g.</span></p>
<p><span style="font-family:Calibri,serif;"><strong>tell(&#8216;outfile.txt&#8217;)</strong></span><span style="font-family:Calibri,serif;">.</span></p>
<p><span style="font-family:Calibri,serif;">Evaluating a </span><span style="font-family:Calibri,serif;"><strong>tell </strong></span><span style="font-family:Calibri,serif;">goal causes the named file to become the current output stream. If the file is not already open, a file with the specified name is first created(any existing file with the same name is deleted).</span></p>
<p><span style="font-family:Calibri,serif;">Note that the file corresponding to the previous current output stream remains open when a new current output stream is selected. Only the current output streamcan be closed (using the </span><span style="font-family:Calibri,serif;"><strong>told </strong></span><span style="font-family:Calibri,serif;">predicate described below). </span></p>
<p><span style="font-family:Calibri,serif;">The default current output stream is </span><span style="font-family:Calibri,serif;"><em>user</em></span><span style="font-family:Calibri,serif;">, i.e. the user&#8217;s terminal. This value can be restored either by using the </span><span style="font-family:Calibri,serif;"><strong>told </strong></span><span style="font-family:Calibri,serif;">predicate or by </span><span style="font-family:Calibri,serif;"><strong>tell(user)</strong></span><span style="font-family:Calibri,serif;">.</span></p>
<p><span style="font-family:Calibri,serif;">The built-in predicate </span><span style="font-family:Calibri,serif;"><strong>told/0 </strong></span><span style="font-family:Calibri,serif;">takes no arguments. Evaluating a </span><span style="font-family:Calibri,serif;"><strong>told </strong></span><span style="font-family:Calibri,serif;">goal causes the current output file to be closed and the current output stream to be reset to </span><span style="font-family:Calibri,serif;"><em>user</em></span><span style="font-family:Calibri,serif;">, i.e. the user&#8217;s terminal.</span></p>
<p><span style="font-family:Calibri,serif;">The built-in predicate </span><span style="font-family:Calibri,serif;"><strong>telling/1 </strong></span><span style="font-family:Calibri,serif;">takes one argument, which must be a variable and will normally be unbound. Evaluating a </span><span style="font-family:Calibri,serif;"><strong>telling </strong></span><span style="font-family:Calibri,serif;">goal causes the variable to be bound to the name of the current output stream.</span></p>
<p><span style="font-family:Calibri,serif;"><span style="font-size:medium;"><strong>h.  File Input: Changing the Current Input Stream</strong></span></span></p>
<p><span style="font-family:Calibri,serif;">The current input stream can be changed using the </span><span style="font-family:Calibri,serif;"><strong>see/1 </strong></span><span style="font-family:Calibri,serif;">predicate. This takes asingle argument, which is an atom or variable representing a file name, e.g.</span></p>
<p><span style="font-family:Calibri,serif;"><strong>see(&#8216;myfile.txt&#8217;)</strong></span><span style="font-family:Calibri,serif;">.</span></p>
<p><span style="font-family:Calibri,serif;">Evaluating a </span><span style="font-family:Calibri,serif;"><strong>see </strong></span><span style="font-family:Calibri,serif;">goal causes the named file to become the current input stream. If the file is not already open it is first opened (for read access only). If it is not possible to open a file with the given name, an error will be generated.</span></p>
<p><span style="font-family:Calibri,serif;">Note that the file corresponding to the previous current input stream remains open when a new current input stream is selected. Only the current input stream can be closed (using the </span><span style="font-family:Calibri,serif;"><strong>seen </strong></span><span style="font-family:Calibri,serif;">predicate described below).</span></p>
<p><span style="font-family:Calibri,serif;">The built-in predicate </span><span style="font-family:Calibri,serif;"><strong>seen/0 </strong></span><span style="font-family:Calibri,serif;">takes no arguments. Evaluating a </span><span style="font-family:Calibri,serif;"><strong>see </strong></span><span style="font-family:Calibri,serif;">goal causes the current input file to be closed and the current input stream to be reset to </span><span style="font-family:Calibri,serif;"><em>user</em></span><span style="font-family:Calibri,serif;">, i.e. the user&#8217;s terminal.</span></p>
<p><span style="font-family:Calibri,serif;">The built-in predicate </span><span style="font-family:Calibri,serif;"><strong>seeing/1 </strong></span><span style="font-family:Calibri,serif;">takes one argument, which must be a variable and will normally be unbound. Evaluating a </span><span style="font-family:Calibri,serif;"><strong>seeing </strong></span><span style="font-family:Calibri,serif;">goal causes the variable to be bound to the name of the current input stream.</span></p>
<p><span style="font-family:Calibri,serif;"><strong>*  h.1 Reading from Files: End of File</strong></span></p>
<p><span style="font-family:Calibri,serif;"> </span><span style="font-family:Calibri,serif;"><span style="font-size:x-small;">If the end of file is encountered when evaluating the goal </span></span><span style="font-family:Calibri,serif;"><span style="font-size:x-small;"><strong>read(X)</strong></span></span><span style="font-family:Calibri,serif;"><span style="font-size:x-small;">, variable </span></span><span style="font-family:Calibri,serif;"><span style="font-size:x-small;"><strong>X </strong></span></span><span style="font-family:Calibri,serif;"><span style="font-size:x-small;">will</span></span></p>
<p><span style="font-family:Calibri,serif;"><span style="font-size:x-small;">be bound to the atom </span></span><span style="font-family:Calibri,serif;"><span style="font-size:x-small;"><em>end_of_file</em></span></span><span style="font-family:Calibri,serif;"><span style="font-size:x-small;">.</span></span></p>
<p><span style="font-family:Calibri,serif;"><span style="font-size:x-small;">If the end of file is encountered while evaluating the goal </span></span><span style="font-family:Calibri,serif;"><span style="font-size:x-small;"><strong>get(X) </strong></span></span><span style="font-family:Calibri,serif;"><span style="font-size:x-small;">or </span></span><span style="font-family:Calibri,serif;"><span style="font-size:x-small;"><strong>get0(X)</strong></span></span><span style="font-family:Calibri,serif;"><span style="font-size:x-small;">,</span></span></p>
<p><span style="font-family:Calibri,serif;"><span style="font-size:x-small;">variable </span></span><span style="font-family:Calibri,serif;"><span style="font-size:x-small;"><strong>X </strong></span></span><span style="font-family:Calibri,serif;"><span style="font-size:x-small;">will be bound to a &#8216;special&#8217; numerical value. As ASCII values must be in</span></span></p>
<p><span style="font-family:Calibri,serif;"><span style="font-size:x-small;">the range 0 to 255 inclusive, this will typically be -1, but may vary from one</span></span></p>
<p><span style="font-family:Calibri,serif;"><span style="font-size:x-small;">implementation of Prolog to another.</span></span></p>
<p><span style="font-family:Calibri,serif;"><strong>*  h.2 </strong></span><span style="font-family:Calibri,serif;"><span style="font-size:x-small;"><strong>Reading from Files: End of Record</strong></span></span></p>
<p><span style="font-family:Calibri,serif;"><span style="font-size:x-small;">Depending on the version of Prolog used, there may be an incompatibility for</span></span></p>
<p><span style="font-family:Calibri,serif;"><span style="font-size:x-small;">character input between reading the end of a record (i.e. the character(s) that</span></span></p>
<p><span style="font-family:Calibri,serif;"><span style="font-size:x-small;">signify the end of a line) from the user&#8217;s terminal and from a file.</span></span></p>
<p><span style="font-family:Calibri,serif;"><span style="font-size:x-small;">Typically the end of a line of input at the user&#8217;s terminal will be indicated by</span></span></p>
<p><span style="font-family:Calibri,serif;"><span style="font-size:x-small;">the character with ASCII value 13. The end of a record in a file will generally be</span></span></p>
<p><span style="font-family:Calibri,serif;"><span style="font-size:x-small;">indicated by two ASCII values: 13 followed by 10.</span></span></p>
<p><span style="font-family:Calibri,serif;"><span style="font-size:x-small;">The following program shows how to read in a series of characters from the</span></span></p>
<p><span style="font-family:Calibri,serif;"><span style="font-size:x-small;">keyboard and print them out, one per line.</span></span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/csonmatdis.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/csonmatdis.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/csonmatdis.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/csonmatdis.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/csonmatdis.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/csonmatdis.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/csonmatdis.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/csonmatdis.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/csonmatdis.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/csonmatdis.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/csonmatdis.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/csonmatdis.wordpress.com/94/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/csonmatdis.wordpress.com/94/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/csonmatdis.wordpress.com/94/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=csonmatdis.wordpress.com&amp;blog=9747570&amp;post=94&amp;subd=csonmatdis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://csonmatdis.wordpress.com/2009/11/25/resume/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d0064c541d746cf2f7954754de191b5f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">csonmatdis</media:title>
		</media:content>
	</item>
		<item>
		<title>My Reference (REVISI EXPERT SYSTEM)</title>
		<link>http://csonmatdis.wordpress.com/2009/11/24/jscc-1-0-j-source-code-converter-1-0/</link>
		<comments>http://csonmatdis.wordpress.com/2009/11/24/jscc-1-0-j-source-code-converter-1-0/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 12:16:07 +0000</pubDate>
		<dc:creator>csonmatdis</dc:creator>
				<category><![CDATA[Expert System Design]]></category>

		<guid isPermaLink="false">http://csonmatdis.wordpress.com/2009/11/24/jscc-1-0-j-source-code-converter-1-0/</guid>
		<description><![CDATA[Abstract Saat ini masih banyak sekali mahasiswa Jurusan Sistem Informasi (khususnya mahasiswa baru) yang stres jika akan menghadapi praktikum alpro dan mengerjakan TP/LP. Umumnya mereka, masih bingung dengan bagaimana cara menyumbangkan atau menulis logikanya kedalam program Java. Hal ini mungkin dikarenakan para mahasiswa baru masih bertransisi dari dunia SMA ke dunia perkuliahan berbasis IT, dan [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=csonmatdis.wordpress.com&amp;blog=9747570&amp;post=91&amp;subd=csonmatdis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Abstract<br />
Saat ini masih banyak sekali mahasiswa Jurusan Sistem Informasi (khususnya mahasiswa baru) yang stres jika akan menghadapi praktikum alpro dan mengerjakan TP/LP. Umumnya mereka, masih bingung dengan bagaimana cara menyumbangkan atau menulis logikanya kedalam program Java. Hal ini mungkin dikarenakan para mahasiswa baru masih bertransisi dari dunia SMA ke dunia perkuliahan berbasis IT, dan para mahasiswa kurang mengerti konsep dasar bahasa Java itu sendiri. Untuk mengatasi hal ini, kami mempunyai inovasi yang spektakuler.</p>
<p>Description<br />
Kami mempunyai inovasi untuk membuat suatu aplikasi yang dapat membantu mahasiswa dalam memecahkan masalah “coding-nya”. Aplikasi ini kami sebut dengan JSCC (J Source Code Converter). Aplikasi ini bekerja dengan cara meng-import inputan yang ditulis dengan notepad (format *.txt). Setelah itu, aplikasi ini mencocokkan inputan user dengan “fact-fact” yang telah ditulis owner dalam database aplikasi ini dan meng-export hasilnya dalam java file ke dalam drive yang telah ditentukan. Dengan demikian aplikasi ini dapat memudahkan para mahasiswa untuk menemukan logika berpikir dalam bahasa Java. Dan JSCC 1.0 ini merupakan aplikasi awal kami, yang mungkin dikembangkan terus sehingga aplikasi ini dapat meng-convert sampai tingkat Java applet,GUI dan sebagainya. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/csonmatdis.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/csonmatdis.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/csonmatdis.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/csonmatdis.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/csonmatdis.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/csonmatdis.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/csonmatdis.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/csonmatdis.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/csonmatdis.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/csonmatdis.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/csonmatdis.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/csonmatdis.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/csonmatdis.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/csonmatdis.wordpress.com/91/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=csonmatdis.wordpress.com&amp;blog=9747570&amp;post=91&amp;subd=csonmatdis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://csonmatdis.wordpress.com/2009/11/24/jscc-1-0-j-source-code-converter-1-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d0064c541d746cf2f7954754de191b5f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">csonmatdis</media:title>
		</media:content>
	</item>
		<item>
		<title>OPERATOR AND ARITHMETIC in Prolog</title>
		<link>http://csonmatdis.wordpress.com/2009/11/13/operator-and-arithmetic/</link>
		<comments>http://csonmatdis.wordpress.com/2009/11/13/operator-and-arithmetic/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 13:16:21 +0000</pubDate>
		<dc:creator>csonmatdis</dc:creator>
				<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://csonmatdis.wordpress.com/?p=65</guid>
		<description><![CDATA[Penyelesaian No. 1 1. siapkan notepad yang diubah menjadi format.pl 2. setelah format berubah lalu consult program tersebut. 3. tulis kategori apa yang akan dimunculkan sesuai keinginan. 4. Hingga semua kategori dijabarkan,sehingga tidak adalagi maka akan muncul &#8220;no&#8221; Penyelesaian no 2 1. Deklarasikan pada notepad yang dirubah format.pl yang akan dijalankan pada program prolog. 2. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=csonmatdis.wordpress.com&amp;blog=9747570&amp;post=65&amp;subd=csonmatdis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ul>
<li><strong>Penyelesaian No. 1</strong></li>
</ul>
<p>1. siapkan notepad yang diubah menjadi format.pl</p>
<p><img class="aligncenter size-full wp-image-79" src="http://csonmatdis.files.wordpress.com/2009/11/picture1.png?w=390&#038;h=242" alt="" width="390" height="242" /></p>
<p>2. setelah format berubah lalu consult program tersebut.</p>
<p>3. tulis kategori apa yang akan dimunculkan sesuai keinginan.</p>
<p><img class="aligncenter size-full wp-image-80" src="http://csonmatdis.files.wordpress.com/2009/11/picture2.png?w=390&#038;h=175" alt="" width="390" height="175" /><img class="aligncenter size-full wp-image-81" src="http://csonmatdis.files.wordpress.com/2009/11/picture3.png?w=390&#038;h=157" alt="" width="390" height="157" /><img class="aligncenter size-full wp-image-83" src="http://csonmatdis.files.wordpress.com/2009/11/picture4.png?w=390&#038;h=131" alt="" width="390" height="131" /><img class="aligncenter size-full wp-image-84" src="http://csonmatdis.files.wordpress.com/2009/11/picture5.png?w=390&#038;h=206" alt="" width="390" height="206" /></p>
<p>4. Hingga semua kategori dijabarkan,sehingga tidak adalagi maka akan muncul &#8220;no&#8221;</p>
<ul>
<li><strong>Penyelesaian no 2</strong></li>
</ul>
<p>1. Deklarasikan pada notepad yang dirubah format.pl yang akan dijalankan pada program prolog.</p>
<p><img class="aligncenter size-full wp-image-85" title="no2" src="http://csonmatdis.files.wordpress.com/2009/11/no2.jpg?w=390&#038;h=243" alt="no2" width="390" height="243" /></p>
<p>2. Lalu consult pada program prolog sesuai dengan perintah soal.</p>
<p><img class="aligncenter size-full wp-image-86" src="http://csonmatdis.files.wordpress.com/2009/11/prolog-xy.png?w=390&#038;h=328" alt="" width="390" height="328" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/csonmatdis.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/csonmatdis.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/csonmatdis.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/csonmatdis.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/csonmatdis.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/csonmatdis.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/csonmatdis.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/csonmatdis.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/csonmatdis.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/csonmatdis.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/csonmatdis.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/csonmatdis.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/csonmatdis.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/csonmatdis.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=csonmatdis.wordpress.com&amp;blog=9747570&amp;post=65&amp;subd=csonmatdis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://csonmatdis.wordpress.com/2009/11/13/operator-and-arithmetic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d0064c541d746cf2f7954754de191b5f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">csonmatdis</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/11/picture1.png" medium="image" />

		<media:content url="http://csonmatdis.files.wordpress.com/2009/11/picture2.png" medium="image" />

		<media:content url="http://csonmatdis.files.wordpress.com/2009/11/picture3.png" medium="image" />

		<media:content url="http://csonmatdis.files.wordpress.com/2009/11/picture4.png" medium="image" />

		<media:content url="http://csonmatdis.files.wordpress.com/2009/11/picture5.png" medium="image" />

		<media:content url="http://csonmatdis.files.wordpress.com/2009/11/no2.jpg" medium="image">
			<media:title type="html">no2</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/11/prolog-xy.png" medium="image" />
	</item>
		<item>
		<title>Summary of Chapter 4 (Operator and Arithmatic)</title>
		<link>http://csonmatdis.wordpress.com/2009/11/12/42/</link>
		<comments>http://csonmatdis.wordpress.com/2009/11/12/42/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 09:04:46 +0000</pubDate>
		<dc:creator>csonmatdis</dc:creator>
				<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://csonmatdis.wordpress.com/?p=42</guid>
		<description><![CDATA[Operator notasi yang digunakan untuk predikat adalah salah satu dari standar pengguna diikuti oleh sejumlah argumen dalam kurung, misalnya suka (john, mary). Sebagai alternatif, apapun predikat yang ditetapkan pengguna dengan dua argumen (binary predikat) dapat dikonversi ke operator infiks. Hal ini memungkinkan functor (predikat nama) yang akan ditulis di antara dua argumen tanpa tanda kurung, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=csonmatdis.wordpress.com&amp;blog=9747570&amp;post=42&amp;subd=csonmatdis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ul>
<li><strong>Operator</strong></li>
</ul>
<p style="text-align:left;">notasi yang digunakan untuk predikat adalah salah satu dari standar<br />
pengguna diikuti oleh sejumlah argumen dalam kurung, misalnya suka (john, mary).<br />
Sebagai alternatif, apapun predikat yang ditetapkan pengguna dengan dua argumen (binary predikat) dapat dikonversi ke operator infiks. Hal ini memungkinkan functor<br />
(predikat nama) yang akan ditulis di antara dua argumen tanpa tanda kurung, misalnya<br />
john suka mary. Setiap predikat yang ditetapkan pengguna dengan satu argumen (a unary predikat)dapat diubah menjadi prefiks operator. Hal ini memungkinkan untuk functor ditulis sebelum argumen tanpa tanda kurung. Notasi operator juga dapat digunakan dengan mudah dibaca aturan untuk bantuan. Setiap predikat yang ditetapkan pengguna dengan satu atau dua argumen dapat dikonversi ke operator dengan memasukkan tujuan menggunakan op predikat pada sistem prom.</p>
<p>Ada bentuk lain untuk menulis suatu predikat selain bentuk standar yang sudah dipelajari pada bab sebelumnya. Untuk binary predicate  yaitu predikat dengan dua argumen dapat diubah menjadi bentuk infix operator.</p>
<p>contoh :</p>
<p>main (budi,main)<br />
bentuk standar tersebut dapat diubah menjadi infix operator<br />
budi main bola<br />
Kemudian untuk bentuk unary predikat  yaitu predikat dengan satu argumen dapat diubah menjadi bentuk prefix operator atau postfix operator.</p>
<p>Contoh :<br />
mbois(budi)<br />
bentuk tersebut diubah menjadi prefix operator<br />
mbois budi<br />
atau bisa juga diubah menjadi postfix operator<br />
budi mbois</p>
<ul>
<li><strong>Arithmetic</strong></li>
</ul>
<p>Pada aplikasi prolog juga terdapat fasilitas penghitungan aritmatika . Pembahasan tentang aritmatik di dalam prolog dibagi menjadi beberapa bagian yaitu:</p>
<p>1. Operator Aritmatika</p>
<p>Operator yang digunakan untuk penghitungan aritmatik variabel-variabel di dalam pemrograman prolog. Berikut adalah contoh penggunaan dari masing-masing operator.<br />
X+Y (penjumlahan dari X ditambah Y)<br />
X-Y (selisih dari X dikurangi  Y)<br />
X*Y (hasil perkalian dari X dan Y)<br />
X/Y (hasil pembagian dari X dibagi oleh Y)<br />
X//Y integer hasil bagi dari  X dan Y (hasilnya adalah dibagi ke integer terdekat antara hasil dan nol)<br />
X^Y (nilai dari X pangkat Y)<br />
-X (nilai negatif dari X)</p>
<p>&nbsp;</p>
<p>2.  Fungsi Aritmatika</p>
<p>Operator / fungsi yang digunakan untuk melakukan penghitungan aritmatik variabel-variabel dalam prolog.</p>
<p>contoh penggunaan dari masing-masing fungsi :<br />
abs(X) (nilai absolut dari X)<br />
sin(X) (nilai sinus dari X untuk X dalam derajat)<br />
cos(X) (nilai cosinus dari X untuk X dalam derajat)<br />
max(X,Y) (menentukan mana yang lebih besar antara  X dan Y)<br />
sqrt(X) (nilai dari X akar pangkat dua)</p>
<p>&nbsp;</p>
<p>3.  Pengutamaan Operator Dalam Ekspresi Aritmatika<br />
Prolog menggunakan algoritma aljabar biasa dalam pengopersian aritmatika.</p>
<p>Contoh :  p+q*r-s.</p>
<p>Di dalam ajabar q dan r dikalikan lebih dahulu lalu ditambah dengan p lalu dikurangi dengan s. Di dalam prolog juga demikian, untuk pengecualian, kita tinggal menggunakan kurung.</p>
<p>4.  Relational Operators<br />
Operator seperti =, !=, &gt;,&gt;=, &lt;, =&lt;, dapat digunakan di Prolog. Biasanya digunakan untuk membandingkan dua variabel.</p>
<p>contoh :</p>
<p>x != 0 &#8212;-&gt;dibaca : nilai x tidak sama dengan 0</p>
<p>x &gt;= 0 &#8212;&gt;dibaca : nlai x lebih dari sama dengan 0</p>
<p>&nbsp;</p>
<ul>
<li>Operator Pembanding</li>
</ul>
<p>Dibawah ini merupakan daftar dari equality operators dalam prolog beserta fungsi dari masing-masing operator.<br />
o Arithmetic Expression Equality  =:=<br />
o Arithmetic Expression Inequality  =\=<br />
o Terms Identical  ==<br />
o Terms Not Identical  \==<br />
o Terms Identical With Unification  =<br />
o Non-Unification Between Two Terms  \=</p>
<p>&nbsp;</p>
<ul>
<li><strong>Operator Logika</strong></li>
</ul>
<p>1.  Operator Not<br />
Operator not dapat ditempatkan sebelum predikat untuk memberikan negasi. Predikat yang dinegasikan bernilai benar jika predikat yang asli salah dan bernilai salah jika predikat yang asli benar.</p>
<p>berikut contohnya :</p>
<p>?- not dog(fido).<br />
no<br />
?- dog(fred).<br />
no<br />
?- not dog(fred).<br />
yes<br />
?- X=0,X is 0.<br />
X = 0<br />
?- X=0,not X is 0.</p>
<p>no</p>
<p>2.  Operator Disjungsi<br />
Operator disjungsi (;) digunakan sebagai operator ‘atau’.</p>
<p>berikut contohnya :</p>
<p>?- 6&lt;3;7 is 5+2.<br />
yes</p>
<p>?- 6*6=:=36;10=8+3.<br />
yes</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/csonmatdis.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/csonmatdis.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/csonmatdis.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/csonmatdis.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/csonmatdis.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/csonmatdis.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/csonmatdis.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/csonmatdis.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/csonmatdis.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/csonmatdis.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/csonmatdis.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/csonmatdis.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/csonmatdis.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/csonmatdis.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=csonmatdis.wordpress.com&amp;blog=9747570&amp;post=42&amp;subd=csonmatdis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://csonmatdis.wordpress.com/2009/11/12/42/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d0064c541d746cf2f7954754de191b5f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">csonmatdis</media:title>
		</media:content>
	</item>
		<item>
		<title>EXPERT SYSTEM</title>
		<link>http://csonmatdis.wordpress.com/2009/10/21/expert-system/</link>
		<comments>http://csonmatdis.wordpress.com/2009/10/21/expert-system/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 14:56:07 +0000</pubDate>
		<dc:creator>csonmatdis</dc:creator>
				<category><![CDATA[Literature Review]]></category>

		<guid isPermaLink="false">http://csonmatdis.wordpress.com/2009/10/21/expert-system/</guid>
		<description><![CDATA[Expert system and Rule-based Expert System An expert system is software that attempts to provide an answer to a problem, or clarify uncertainties where normally one or more human experts would need to be consulted. Expert systems are most common in a specific problem domain, and is a traditional application and/or subfield of artificial intelligence. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=csonmatdis.wordpress.com&amp;blog=9747570&amp;post=35&amp;subd=csonmatdis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Expert system and Rule-based Expert System</strong></p>
<p>An expert system is software that attempts to provide an answer to a problem, or clarify uncertainties where normally one or more human experts would need to be consulted. Expert systems are most common in a specific problem domain, and is a traditional application and/or subfield of artificial intelligence. A wide variety of methods can be used to simulate the performance of the expert however common to most or all are 1) the creation of a so-called &#8220;knowledgebase&#8221; which uses some knowledge representation formalism to capture the Subject Matter Expert&#8217;s (SME) knowledge and 2) a process of gathering that knowledge from the SME and codifying it according to the formalism, which is called knowledge engineering. Expert systems may or may not have learning components but a third common element is that once the system is developed it is proven by being placed in the same real world problem solving situation as the human SME, typically as an aid to human workers or a supplement to some information system.<br />
Expert systems were introduced by Edward Feigenbaum, the first truly successful form of AI software. The topic of expert systems has many points of contact with general systems theory, operations research, business process reengineering and various topics in applied mathematics and management science.<br />
Expert systems topics<br />
Chaining<br />
Two methods of reasoning when using inference rules are backward chaining and forward chaining.<br />
Forward chaining starts with the data available and uses the inference rules to conclude more data until a desired goal is reached. An inference engine using forward chaining searches the inference rules until it finds one in which the if clause is known to be true. It then concludes the then clause and adds this information to its data. It would continue to do this until a goal is reached. Because the data available determines which inference rules are used, this method is also called data driven.<br />
Backward chaining starts with a list of goals and works backwards to see if there is data which will allow it to conclude any of these goals. An inference engine using backward chaining would search the inference rules until it finds one which has a then clause that matches a desired goal. If the if clause of that inference rule is not known to be true, then it is added to the list of goals. For example, suppose a rule base contains<br />
1.	If Fritz is green then Fritz is a frog.<br />
2.	If Fritz is a frog then Fritz hops.<br />
Suppose a goal is to conclude that Fritz hops. The rule base would be searched and rule (2) would be selected because its conclusion (the then clause) matches the goal. It is not known that Fritz is a frog, so this &#8220;if&#8221; statement is added to the goal list. The rule base is again searched and this time rule (1) is selected because its then clause matches the new as certainty factors. A human, when reasoning, does not always conclude things with 100% confidence: he might venture, &#8220;If Fritz is green, then he is probably a frog&#8221; (after all, he might be a chameleon). This type of reasoning can be imitated by using numeric values called confidences. For example, if it is known that Fritz is green, it might be concluded with 0.85 confidence that he is a frog; or, if it is known that he is a frog, it might be concluded with 0.95 confidence that he hops. These numbers are probabilities in a Bayesian sense, in that they quantify uncertainty.<br />
Expert system architecture<br />
The following general points about expert systems and their architecture have been illustrated.<br />
1. The sequence of steps taken to reach a conclusion is dynamically synthesized with each new case. It is not explicitly programmed when the system is built.<br />
2. Expert systems can process multiple values for any problem parameter. This permits more than one line of reasoning to be pursued and the results of incomplete (not fully determined) reasoning to be presented.<br />
3. Problem solving is accomplished by applying specific knowledge rather than specific technique. This is a key idea in expert systems technology. It reflects the belief that human experts do not process their knowledge differently from others, but they do possess different knowledge. With this philosophy, when one finds that their expert system does not produce the desired results, work begins to expand the knowledge base, not to re-program the procedures.<br />
There are various expert systems in which a rulebase and an inference engine cooperate to simulate the reasoning process that a human expert pursues in analyzing a problem and arriving at a conclusion. In these systems, in order to simulate the human reasoning process, a vast amount of knowledge needed to be stored in the knowledge base. Generally, the knowledge base of such an expert system consisted of a relatively large number of &#8220;if then&#8221; type of statements that were interrelated in a manner that, in theory at least, resembled the sequence of mental steps that were involved in the human reasoning process.<br />
Because of the need for large storage capacities and related programs to store the rulebase, most expert systems have, in the past, been run only on large information handling systems. Recently, the storage capacity of personal computers has increased to a point where it is becoming possible to consider running some types of simple expert systems on personal computers.<br />
In some applications of expert systems, the nature of the application and the amount of stored information necessary to simulate the human reasoning process for that application is just too vast to store in the active memory of a computer. In other applications of expert systems, the nature of the application is such that not all of the information is always needed in the reasoning process. An example of this latter type application would be the use of an expert system to diagnose a data processing system comprising many separate components, some of which are optional. When that type of expert system employs a single integrated rulebase to diagnose the minimum system configuration of the data processing system, much of the rulebase is not required since many of the components which are optional units of the system will not be present in the system. Nevertheless, earlier expert systems require the entire rulebase to be stored since all the rules were, in effect, chained or linked together by the structure of the rulebase.<br />
When the rulebase is segmented, preferably into contextual segments or units, it is then possible to eliminate portions of the Rulebase containing data or knowledge that is not needed in a particular application. The segmenting of the rulebase also allows the expert system to be run with systems or on systems having much smaller memory capacities than was possible with earlier arrangements since each segment of the rulebase can be paged into and out of the system as needed. The segmenting of the rulebase into contextual segments requires that the expert system manage various intersegment relationships as segments are paged into and out of memory during execution of the program. Since the system permits a rulebase segment to be called and executed at any time during the processing of the first rulebase, provision must be made to store the data that has been accumulated up to that point so that at some time later in the process, when the system returns to the first segment, it can proceed from the last point or rule node that was processed. Also, provision must be made so that data that has been collected by the system up to that point can be passed to the second segment of the rulebase after it has been paged into the system and data collected during the processing of the second segment can be passed to the first segment when the system returns to complete processing that segment.<br />
The user interface and the procedure interface are two important functions in the information collection process.<br />
End user<br />
The end-user usually sees an expert system through an interactive dialog, an example of which follows:<br />
Q. Do you know which restaurant you want to go to?<br />
A. No<br />
Q. Is there any kind of food you would particularly like?<br />
A. No<br />
Q. Do you like spicy food?<br />
A. No<br />
Q. Do you usually drink wine with meals?<br />
A. Yes<br />
Q. When you drink wine, is it French wine?<br />
A. Yes<br />
As can be seen from this dialog, the system is leading the user through a set of questions, the purpose of which is to determine a suitable set of restaurants to recommend. This dialog begins with the system asking if the user already knows the restaurant choice (a common feature of expert systems) and immediately illustrates a characteristic of expert systems; users may choose not to respond to any question. In expert systems, dialogs are not pre-planned. There is no fixed control structure. Dialogs are synthesized from the current information and the contents of the knowledge base. Because of this, not being able to supply the answer to a particular question does not stop the consultation.<br />
Explanation system<br />
Another major distinction between expert systems and traditional systems is illustrated by the following answer given by the system when the user answers a question with another question, &#8220;Why&#8221;, as occurred in the above example. The answer is:<br />
A. I am trying to determine the type of restaurant to suggest. So far Chinese is not a likely choice. It is possible that French is a likely choice. I know that if the diner is a wine drinker, and the preferred wine is French, then there is strong evidence that the restaurant choice should include French.<br />
It is very difficult to implement a general explanation system (answering questions like &#8220;Why&#8221; and &#8220;How&#8221;) in a traditional computer program. An expert system can generate an explanation by retracing the steps of its reasoning. The response of the expert system to the question WHY is an exposure of the underlying knowledge structure. It is a rule; a set of antecedent conditions which, if true, allow the assertion of a consequent. The rule references values, and tests them against various constraints or asserts constraints onto them. This, in fact, is a significant part of the knowledge structure. There are values, which may be associated with some organizing entity. For example, the individual diner is an entity with various attributes (values) including whether they drink wine and the kind of wine. There are also rules, which associate the currently known values of some attributes with assertions that can be made about other attributes. It is the orderly processing of these rules that dictates the dialog itself.<br />
Expert systems versus problem-solving systems<br />
The principal distinction between expert systems and traditional problem solving programs is the way in which the problem related expertise is coded. In traditional applications, problem expertise is encoded in both program and data structures. In the expert system approach all of the problem related expertise is encoded in data structures only; no problem-specific information is encoded in the program structure. This organization has several benefits.<br />
An example may help contrast the traditional problem solving program with the expert system approach. The example is the problem of tax advice. In the traditional approach data structures describe the taxpayer and tax tables, and a program in which there are statements representing an expert tax consultant&#8217;s knowledge, such as statements which relate information about the taxpayer to tax table choices. It is this representation of the tax expert&#8217;s knowledge that is difficult for the tax expert to understand or modify.<br />
In the expert system approach, the information about taxpayers and tax computations is again found in data structures, but now the knowledge describing the relationships between them is encoded in data structures as well. The programs of an expert system are independent of the problem domain (taxes) and serve to process the data structures without regard to the nature of the problem area they describe. For example, there are programs to acquire the described data values through user interaction, programs to represent and process special organizations of description, and programs to process the declarations that represent semantic relationships within the problem domain and an algorithm to control the processing sequence and focus.<br />
The general architecture of an expert system involves two principal components: a problem dependent set of data declarations called the knowledge base or rule base, and a problem independent (although highly data structure dependent) program which is called the inference engine.<br />
Individuals involved with expert systems<br />
There are generally three individuals having an interaction with expert systems. Primary among these is the end-user; the individual who uses the system for its problem solving assistance. In the building and maintenance of the system there are two other roles: the problem domain expert who builds and supplies the knowledge base providing the domain expertise, and a knowledge engineer who assists the experts in determining the representation of their knowledge, enters this knowledge into an explanation module and who defines the inference technique required to obtain useful problem solving activity. Usually, the knowledge engineer will represent the problem solving activity in the form of rules which is referred to as a rule-based expert system. When these rules are created from the domain expertise, the knowledge base stores the rules of the expert system.<br />
Inference rule<br />
An understanding of the &#8220;inference rule&#8221; concept is important to understand expert systems. An inference rule is a statement that has two parts, an if clause and a then clause. This rule is what gives expert systems the ability to find solutions to diagnostic and prescriptive problems. An example of an inference rule is:<br />
If the restaurant choice includes French, and the occasion is romantic,<br />
Then the restaurant choice is definitely Paul Bocuse.<br />
An expert system&#8217;s rulebase is made up of many such inference rules. They are entered as separate rules and it is the inference engine that uses them together to draw conclusions. Because each rule is a unit, rules may be deleted or added without affecting other rules (though it should affect which conclusions are reached). One advantage of inference rules over traditional programming is that inference rules use reasoning which more closely resemble human reasoning.<br />
Thus, when a conclusion is drawn, it is possible to understand how this conclusion was reached. Furthermore, because the expert system uses knowledge in a form similar to the expert, it may be easier to retrieve this information from the expert.<br />
Procedure node interface<br />
The function of the procedure node interface is to receive information from the procedures coordinator and create the appropriate procedure call. The ability to call a procedure and receive information from that procedure can be viewed as simply a generalization of input from the external world. While in some earlier expert systems external information has been obtained, that information was obtained only in a predetermined manner so only certain information could actually be acquired. This expert system, disclosed in the cross-referenced application, through the knowledge base, is permitted to invoke any procedure allowed on its host system. This makes the expert system useful in a much wider class of knowledge domains than if it had no external access or only limited external access.<br />
In the area of machine diagnostics using expert systems, particularly self-diagnostic applications, it is not possible to conclude the current state of &#8220;health&#8221; of a machine without some information. The best source of information is the machine itself, for it contains much detailed information that could not reasonably be provided by the operator.<br />
The knowledge that is represented in the system appears in the rulebase. In the rulebase described in the cross-referenced applications, there are basically four different types of objects, with associated information present.<br />
1.	Classes—these are questions asked to the user.<br />
2.	Parameters—a parameter is a place holder for a character string which may be a variable that can be inserted into a class question at the point in the question where the parameter is positioned.<br />
3.	Procedures—these are definitions of calls to external procedures.<br />
4.	Rule Nodes—The inferencing in the system is done by a tree structure which indicates the rules or logic which mimics human reasoning. The nodes of these trees are called rule nodes. There are several different types of rule nodes.<br />
The rulebase comprises a forest of many trees. The top node of the tree is called the goal node, in that it contains the conclusion. Each tree in the forest has a different goal node. The leaves of the tree are also referred to as rule nodes, or one of the types of rule nodes. A leaf may be an evidence node, an external node, or a reference node.<br />
An evidence node functions to obtain information from the operator by asking a specific question. In responding to a question presented by an evidence node, the operator is generally instructed to answer &#8220;yes&#8221; or &#8220;no&#8221; represented by numeric values 1 and 0 or provide a value of between 0 and 1, represented by a &#8220;maybe.&#8221;<br />
Questions which require a response from the operator other than yes or no or a value between 0 and 1 are handled in a different manner.<br />
A leaf that is an external node indicates that data will be used which was obtained from a procedure call.<br />
A reference node functions to refer to another tree or subtree.<br />
A tree may also contain intermediate or minor nodes between the goal node and the leaf node. An intermediate node can represent logical operations like And or Or.<br />
The inference logic has two functions. It selects a tree to trace and then it traces that tree. Once a tree has been selected, that tree is traced, depth-first, left to right.<br />
The word &#8220;tracing&#8221; refers to the action the system takes as it traverses the tree, asking classes (questions), calling procedures, and calculating confidences as it proceeds.<br />
As explained in the cross-referenced applications, the selection of a tree depends on the ordering of the trees. The original ordering of the trees is the order in which they appear in the rulebase. This order can be changed, however, by assigning an evidence node an attribute &#8220;initial&#8221; which is described in detail in these applications. The first action taken is to obtain values for all evidence nodes which have been assigned an &#8220;initial&#8221; attribute. Using only the answers to these initial evidences, the rules are ordered so that the most likely to succeed is evaluated first. The trees can be further re-ordered since they are constantly being updated as a selected tree is being traced.<br />
It has been found that the type of information that is solicited by the system from the user by means of questions or classes should be tailored to the level of knowledge of the user. In many applications, the group of prospective uses is nicely defined and the knowledge level can be estimated so that the questions can be presented at a level which corresponds generally to the average user. However, in other applications, knowledge of the specific domain of the expert system might vary considerably among the group of prospective users.<br />
One application where this is particularly true involves the use of an expert system, operating in a self-diagnostic mode on a personal computer to assist the operator of the personal computer to diagnose the cause of a fault or error in either the hardware or software. In general, asking the operator for information is the most straightforward way for the expert system to gather information assuming, of course, that the information is or should be within the operator&#8217;s understanding. For example, in diagnosing a personal computer, the expert system must know the major functional components of the system. It could ask the operator, for instance, if the display is a monochrome or color display. The operator should, in all probability, be able to provide the correct answer 100% of the time. The expert system could, on the other hand, cause a test unit to be run to determine the type of display. The accuracy of the data collected by either approach in this instance probably would not be that different so the knowledge engineer could employ either approach without affecting the accuracy of the diagnosis. However, in many instances, because of the nature of the information being solicited, it is better to obtain the information from the system rather than asking the operator, because the accuracy of the data supplied by the operator is so low that the system could not effectively process it to a meaningful conclusion.<br />
In many situations the information is already in the system, in a form of which permits the correct answer to a question to be obtained through a process of inductive or deductive reasoning. The data previously collected by the system could be answers provided by the user to less complex questions that were asked for a different reason or results returned from test units that were previously run.<br />
User interface<br />
The function of the user interface is to present questions and information to the user and supply the user&#8217;s responses to the inference engine.<br />
Any values entered by the user must be received and interpreted by the user interface. Some responses are restricted to a set of possible legal answers, others are not. The user interface checks all responses to insure that they are of the correct data type. Any responses that are restricted to a legal set of answers are compared against these legal answers. Whenever the user enters an illegal answer, the user interface informs the user that his answer was invalid and prompts him to correct it.<br />
Application of expert systems<br />
Expert systems are designed and created to facilitate tasks in the fields of accounting, medicine, process control, financial service, production, human resources etc. Indeed, the foundation of a successful expert system depends on a series of technical procedures and development that may be designed by certain technicians and related experts.<br />
A good example of application of expert systems in banking area is expert systems for mortgages. Loan departments are interested in expert systems for mortgages because of the growing cost of labour which makes the handling and acceptance of relatively small loans less profitable. They also see in the application of expert systems a possibility for standardised, efficient handling of mortgage loan, and appreciate that for the acceptance of mortgages there are hard and fast rules which do not always exist with other types of loans.<br />
While expert systems have distinguished themselves in AI research in finding practical application, their application has been limited. Expert systems are notoriously narrow in their domain of knowledge—as an amusing example, a researcher used the &#8220;skin disease&#8221; expert system to diagnose his rustbucket car as likely to have developed measles—and the systems were thus prone to making errors that humans would easily spot. Additionally, once some of the mystique had worn off, most programmers realized that simple expert systems were essentially just slightly more elaborate versions of the decision logic they had already been using. Therefore, some of the techniques of expert systems can now be found in most complex programs without any fuss about them.<br />
An example, and a good demonstration of the limitations of, an expert system used by many people is the Microsoft Windows operating system troubleshooting software located in the &#8220;help&#8221; section in the taskbar menu. Obtaining expert/technical operating system support is often difficult for individuals not closely involved with the development of the operating system. Microsoft has designed their expert system to provide solutions, advice, and suggestions to common errors encountered throughout using the operating systems.<br />
Another 1970s and 1980s application of expert systems — which we today would simply call AI — was in computer games. For example, the computer baseball games Earl Weaver Baseball and Tony La Russa Baseball each had highly detailed simulations of the game strategies of those two baseball managers. When a human played the game against the computer, the computer queried the Earl Weaver or Tony La Russa Expert System for a decision on what strategy to follow. Even those choices where some randomness was part of the natural system (such as when to throw a surprise pitch-out to try to trick a runner trying to steal a base) were decided based on probabilities supplied by Weaver or La Russa. Today we would simply say that &#8220;the game&#8217;s AI provided the opposing manager&#8217;s strategy.&#8221;<br />
Advantages and disadvantages<br />
Advantages:<br />
•	Provides consistent answers for repetitive decisions, processes and tasks<br />
•	Holds and maintains significant levels of information<br />
•	Encourages organizations to clarify the logic of their decision-making<br />
•	Always asks a question, that a human might forget to ask<br />
•	Can work continuously (no human needs)<br />
•	Can be used by the user more frequently<br />
•	A multi-user expert system can serve more users at a time<br />
Disadvantages:<br />
•	Lacks common sense needed in some decision making<br />
•	Cannot respond creatively like a human expert would in unusual circumstances<br />
•	Domain experts not always able to explain their logic and reasoning<br />
•	Errors may occur in the knowledge base, and lead to wrong decisions<br />
•	Cannot adapt to changing environments, unless knowledge base is changed<br />
Types of problems solved by expert systems<br />
Expert systems are most valuable to organizations that have a high-level of know-how experience and expertise that cannot be easily transferred to other members. They are designed to carry the intelligence and information found in the intellect of experts and provide this knowledge to other members of the organization for problem-solving purposes.<br />
Typically, the problems to be solved are of the sort that would normally be tackled by a medical or other professional. Real experts in the problem domain (which will typically be very narrow, for instance &#8220;diagnosing skin conditions in human teenagers&#8221;) are asked to provide &#8220;rules of thumb&#8221; on how they evaluate the problems, either explicitly with the aid of experienced systems developers, or sometimes implicitly, by getting such experts to evaluate test cases and using computer programs to examine the test data and (in a strictly limited manner) derive rules from that. Generally, expert systems are used for problems for which there is no single &#8220;correct&#8221; solution which can be encoded in a conventional algorithm — one would not write an expert system to find shortest paths through graphs, or sort data, as there are simply easier ways to do these tasks.<br />
Simple systems use simple true/false logic to evaluate data. More sophisticated systems are capable of performing at least some evaluation, taking into account real-world uncertainties, using such methods as fuzzy logic. Such sophistication is difficult to develop and still highly imperfect.<br />
Expert Systems Shells or Inference Engine<br />
A shell is a complete development environment for building and maintaining knowledge-based applications. It provides a step-by-step methodology, and ideally a user-friendly interface such as a graphical interface, for a knowledge engineer that allows the domain experts themselves to be directly involved in structuring and encoding the knowledge. Many commercial shells are available, one example being eGanges which aims to remove the need for a knowledge engineer.</p>
<p>Link yang terkait dengan pembahasan ini :<br />
<a href="http://en.wikipedia.org/wiki/Expert_system">expert system</a><br />
<a href="http://www.softcomputing.net/fuzzy_chapter.pdf">rule-based expert system</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/csonmatdis.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/csonmatdis.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/csonmatdis.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/csonmatdis.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/csonmatdis.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/csonmatdis.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/csonmatdis.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/csonmatdis.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/csonmatdis.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/csonmatdis.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/csonmatdis.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/csonmatdis.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/csonmatdis.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/csonmatdis.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=csonmatdis.wordpress.com&amp;blog=9747570&amp;post=35&amp;subd=csonmatdis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://csonmatdis.wordpress.com/2009/10/21/expert-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d0064c541d746cf2f7954754de191b5f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">csonmatdis</media:title>
		</media:content>
	</item>
		<item>
		<title></title>
		<link>http://csonmatdis.wordpress.com/2009/10/21/18/</link>
		<comments>http://csonmatdis.wordpress.com/2009/10/21/18/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 12:49:50 +0000</pubDate>
		<dc:creator>csonmatdis</dc:creator>
				<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://csonmatdis.wordpress.com/2009/10/21/18/</guid>
		<description><![CDATA[langkah-langkah mengerjakan : 1. salin soal yang ada pada buku logic-program (e-learning) hal 27 pada notepad 2. save dalam format .pl untuk merubah dalam program prolog 3. kerjakan di dalam prolog tersebut sesuai soal 4. soal evise and test goals to find (a) all the mammals, (b) all the carnivores that are mammals, (c) all [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=csonmatdis.wordpress.com&amp;blog=9747570&amp;post=18&amp;subd=csonmatdis&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://csonmatdis.files.wordpress.com/2009/10/prolog.jpg?w=300&#038;h=180" alt="prolog" title="prolog" width="300" height="180" class="aligncenter size-medium wp-image-17" /></p>
<p>langkah-langkah mengerjakan :<br />
1. salin soal yang ada pada buku logic-program (e-learning) hal 27 pada notepad<br />
2. save dalam format .pl untuk merubah dalam program prolog<br />
3. kerjakan di dalam prolog tersebut sesuai soal<br />
4. soal <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> evise and test goals to find (a) all the mammals, (b) all the carnivores that are<br />
    mammals, (c) all the mammals with stripes, (d) whether there is a reptile that has a<br />
    mane.</p>
<p>keterangan :<br />
- pada jawaban no 1 merupakan penyelesaian soal A<br />
- pada jawaban no 2 merupakan penyelesaian soal B<br />
- pada jawaban no 3 terdapat kesalahan ketikan pada statement untuk soal C<br />
- pada jawaban no 4 terdapat kesalahan pada penegtikan &#8220;stripes&#8221; menjadi &#8220;streps&#8221;<br />
- pada jawaban no 5 merupakan penyelesaian soal C<br />
- pada jawaban no 6 merupakan penyelesaian soal D</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/csonmatdis.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/csonmatdis.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/csonmatdis.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/csonmatdis.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/csonmatdis.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/csonmatdis.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/csonmatdis.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/csonmatdis.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/csonmatdis.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/csonmatdis.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/csonmatdis.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/csonmatdis.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/csonmatdis.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/csonmatdis.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=csonmatdis.wordpress.com&amp;blog=9747570&amp;post=18&amp;subd=csonmatdis&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://csonmatdis.wordpress.com/2009/10/21/18/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d0064c541d746cf2f7954754de191b5f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">csonmatdis</media:title>
		</media:content>

		<media:content url="http://csonmatdis.files.wordpress.com/2009/10/prolog.jpg?w=300" medium="image">
			<media:title type="html">prolog</media:title>
		</media:content>
	</item>
	</channel>
</rss>
