<?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>Sugeng Rawuh Daateng Queenexpecta&#039;s Blog.siiip</title>
	<atom:link href="http://queenexpecta.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://queenexpecta.wordpress.com</link>
	<description>&#34;Just WordPress.com weblog for Discrete Mathematic&#34;</description>
	<lastBuildDate>Thu, 24 Dec 2009 01:45:38 +0000</lastBuildDate>
	<language>id</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='queenexpecta.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Sugeng Rawuh Daateng Queenexpecta&#039;s Blog.siiip</title>
		<link>http://queenexpecta.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://queenexpecta.wordpress.com/osd.xml" title="Sugeng Rawuh Daateng Queenexpecta&#039;s Blog.siiip" />
	<atom:link rel='hub' href='http://queenexpecta.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Development of Simple Expert System for Scan Item in Warehouse</title>
		<link>http://queenexpecta.wordpress.com/2009/12/24/development-of-simple-expert-system-for-scan-item-in-warehouse/</link>
		<comments>http://queenexpecta.wordpress.com/2009/12/24/development-of-simple-expert-system-for-scan-item-in-warehouse/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 01:45:26 +0000</pubDate>
		<dc:creator>queenexpecta</dc:creator>
				<category><![CDATA[Literature review]]></category>

		<guid isPermaLink="false">http://queenexpecta.wordpress.com/?p=67</guid>
		<description><![CDATA[In the topic we will show a case.  Some worker in Queenexpecta warehouses have difficulty in checking availability of stocks of things in the warehouse. They have difficulty to find some things and checking things condition. So, we has a program to helping for this case name is Simple Expert System for Scan Item in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=queenexpecta.wordpress.com&amp;blog=10606893&amp;post=67&amp;subd=queenexpecta&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the topic we will show a case.  Some worker in Queenexpecta warehouses have difficulty in checking availability of stocks of things in the warehouse. They have difficulty to find some things and checking things condition. So, we has a program to helping for this case name is Simple Expert System for Scan Item in Warehouse. Check this out.. ^__^</p>
<div id="attachment_73" class="wp-caption aligncenter" style="width: 1034px"><a href="http://queenexpecta.files.wordpress.com/2009/12/pic0014.jpg"><img class="size-large wp-image-73" title="Development of Simple Expert System for Scan item in warehouse" src="http://queenexpecta.files.wordpress.com/2009/12/pic0014.jpg?w=1024&#038;h=640" alt="" width="1024" height="640" /></a><p class="wp-caption-text">Development of Simple Expert System for Scan item in warehouse</p></div>
<p>and then we will show to you all working system of the program. For example: find (write things type) ==&gt; find (susu) and will appears things variant of susu, when it will be expired, things condition and stock number.. check this out..</p>
<div id="attachment_74" class="wp-caption aligncenter" style="width: 1034px"><a href="http://queenexpecta.files.wordpress.com/2009/12/pic0021.jpg"><img class="size-large wp-image-74" title="Development of Simple Expert System for Scan item in warehouse" src="http://queenexpecta.files.wordpress.com/2009/12/pic0021.jpg?w=1024&#038;h=640" alt="" width="1024" height="640" /></a><p class="wp-caption-text">Development of Simple Expert System for Scan item in warehouse</p></div>
<p>not just kinds of susu can show by our program. But with the same step like as susu we can write for example: find (rokok) and will appears..</p>
<div id="attachment_75" class="wp-caption aligncenter" style="width: 1034px"><a href="http://queenexpecta.files.wordpress.com/2009/12/pic0032.jpg"><img class="size-large wp-image-75" title="Development of Simple Expert System for Scan item in warehouse" src="http://queenexpecta.files.wordpress.com/2009/12/pic0032.jpg?w=1024&#038;h=640" alt="Development of Simple Expert System for Scan item in warehouse" width="1024" height="640" /></a><p class="wp-caption-text">Development of Simple Expert System for Scan item in warehouse</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/queenexpecta.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/queenexpecta.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/queenexpecta.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/queenexpecta.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/queenexpecta.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/queenexpecta.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/queenexpecta.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/queenexpecta.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/queenexpecta.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/queenexpecta.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/queenexpecta.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/queenexpecta.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/queenexpecta.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/queenexpecta.wordpress.com/67/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=queenexpecta.wordpress.com&amp;blog=10606893&amp;post=67&amp;subd=queenexpecta&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://queenexpecta.wordpress.com/2009/12/24/development-of-simple-expert-system-for-scan-item-in-warehouse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/92c1ac2bdee02e1244d77d7ea4eb7a68?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">queenexpecta</media:title>
		</media:content>

		<media:content url="http://queenexpecta.files.wordpress.com/2009/12/pic0014.jpg?w=1024" medium="image">
			<media:title type="html">Development of Simple Expert System for Scan item in warehouse</media:title>
		</media:content>

		<media:content url="http://queenexpecta.files.wordpress.com/2009/12/pic0021.jpg?w=1024" medium="image">
			<media:title type="html">Development of Simple Expert System for Scan item in warehouse</media:title>
		</media:content>

		<media:content url="http://queenexpecta.files.wordpress.com/2009/12/pic0032.jpg?w=1024" medium="image">
			<media:title type="html">Development of Simple Expert System for Scan item in warehouse</media:title>
		</media:content>
	</item>
		<item>
		<title>SUMMARY of LOOPS (Chp 6)</title>
		<link>http://queenexpecta.wordpress.com/2009/12/08/summary-of-loops-chp-6/</link>
		<comments>http://queenexpecta.wordpress.com/2009/12/08/summary-of-loops-chp-6/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 16:24:42 +0000</pubDate>
		<dc:creator>queenexpecta</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://queenexpecta.wordpress.com/?p=58</guid>
		<description><![CDATA[LOOPING (directly), but a similar effect can be obtained using recursion, as shown in the a given condition is met. Although, as was pointed out in the introduction to this book, Prolog has no looping facilities, similar effects can be obtained that enable a example programs below. Which from this point forward we refer to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=queenexpecta.wordpress.com&amp;blog=10606893&amp;post=58&amp;subd=queenexpecta&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>LOOPING</strong></p>
<p>(directly), but a similar effect can be obtained using recursion, as shown in the</p>
<p>a given condition is met. Although, as was pointed out in the introduction to this</p>
<p>book, Prolog has no looping facilities, similar effects can be obtained that enable a</p>
<p>example programs below. Which from this point forward we refer to as control statements: the sequence statement, selection statements (three types) and repetition statements (three types). Every program is formed by combining as many sequence, selection and repetition statements as is appropriate for the algorithm the program implements. Each diagram contains an initial state and a final state that represent a control statement’s entry point and exit point, respectively. Single-entry/single-exit control statements make it easy to build programs—we “attached” the control statements to one another by connecting the exit point of one to the entry point of the next. This procedure is similar to the way in which a child stacks building blocks, so we call it controlstatement stacking. We will learn that there is only one other way in which control statements may be connected—control-statement nesting—in which one control statement appears inside another. Thus, algorithms in Java programs are constructed from only three kinds of control statements, combined in only two ways. This is the essence of simplicity.</p>
<p>Many programming languages provide &#8216;for loops&#8217; which enable a set of instructions</p>
<p>Most conventional programming languages have a <em>looping </em>facility that enables a</p>
<p>sequence of goals to be evaluated repeatedly. This can be done in a variety of</p>
<p>set of instructions to be executed repeatedly either a fixed number of times or until</p>
<p>to be executed a fixed number of times. No such facility is available in Prolog</p>
<p>ways, using backtracking, recursion, built-in predicates, or a combination of these.</p>
<p><strong>Looping a Fixed Number of Times</strong></p>
<p>Many programming languages provide &#8216;for loops&#8217; which enable a set of instructions</p>
<p>to be executed a fixed number of times. No such facility is available in Prolog</p>
<p>(directly), but a similar effect can be obtained using recursion, as shown in the</p>
<p>example programs below.</p>
<p>Example 1</p>
<p>The following program outputs integers from a specified value down to 1.</p>
<p>loop(0).</p>
<p>loop(N):-N&gt;0,write(&#8216;The value is: &#8216;),write(N),nl,</p>
<p>M is N-1,loop(M).</p>
<p>The <strong>loop </strong>predicate is defined in terms of itself. The second clause can be</p>
<p>thought of as: &#8216;to loop from <strong>N</strong>, first write the value of <strong>N</strong>, then subtract one to give</p>
<p><strong>M</strong>, then loop from <strong>M</strong>&#8216;. This process clearly needs to be terminated and this is</p>
<p>achieved by the first clause: &#8216;when the argument is zero, do nothing (and hence</p>
<p>stop)&#8217;. The first clause can be regarded as a <em>terminating condition </em>for the recursion.</p>
<p><strong>?- loop(6).</strong></p>
<p><strong>The value is: 6</strong></p>
<p><strong>The value is: 5</strong></p>
<p><strong>The value is: 4</strong></p>
<p><strong>The value is: 3</strong></p>
<p><strong>The value is: 2</strong></p>
<p><strong>The value is: 1</strong></p>
<p><strong>yes</strong></p>
<p>Note the use of the two goals <strong>M is N-1,loop(M) </strong>in the second clause for the</p>
<p><strong>loop </strong>predicate. The obvious alternative of <strong>loop(N-1) </strong>will not work. Prolog only</p>
<p>evaluates expressions such as <strong>N-1 </strong>when evaluating goals with functor <strong>is </strong>or one of</p>
<p>the relational operators, as described in Chapter 4. If <strong>N-1 </strong>is used as an argument of</p>
<p>a predicate it is taken to mean the term with infix operator <strong>- </strong>(i.e. a minus sign) and</p>
<p>arguments <strong>N </strong>and <strong>1</strong>. This is most unlikely to be what is intended!</p>
<p>Example 2</p>
<p>The next program outputs integers from <em>First </em>to <em>Last </em>inclusive.</p>
<p>/* output integers from First to Last inclusive */</p>
<p>output_values(Last,Last):- write(Last),nl,</p>
<p>write(&#8216;end of example&#8217;),nl.</p>
<p>output_values(First,Last):-First=\=Last,write(First),</p>
<p>nl,N is First+1,output_values(N,Last).</p>
<p>Here <strong>output_values </strong>has two arguments, which can be read as &#8216;output the</p>
<p>integers from <em>First </em>to <em>Last </em>inclusive&#8217;. The loop terminates when both arguments are</p>
<p>the same.</p>
<p><strong>?- output_values(5,12).</strong></p>
<p><strong>56789</strong></p>
<p><strong>10</strong></p>
<p><strong>11</strong></p>
<p><strong>12</strong></p>
<p><strong>end of example</strong></p>
<p><strong>yes</strong></p>
<p>Example 3</p>
<p>Define a predicate to find the sum of the integers from 1 to N (say for N = 100).</p>
<p>It is natural to think of this procedurally, i.e. start with 1, then add 2, then add 3,</p>
<p>then add 4, … , then add 100. However the process is much easier to program if reexpressed</p>
<p>declaratively in terms of itself.</p>
<p>The sum of the first 100 integers is the sum of the first 99 integers, plus 100.</p>
<p>The sum of the first 99 integers is the sum of the first 98 integers, plus 99.</p>
<p>The sum of the first 98 integers is the sum of the first 97 integers, plus 98.</p>
<p>…………………………………………………………………………….</p>
<p>The sum of the first 3 integers is the sum of the first 2 integers, plus 3.</p>
<p>The sum of the first 2 integers is the sum of the first 1 integers, plus 2.</p>
<p>The sum of the first 1 integers is one.</p>
<p>There are two distinct cases to consider: the <em>general case</em>: &#8216;the sum of the first</p>
<p>N integers is the sum of the first N-1 integers, plus N&#8217; and the <em>terminating case</em>: &#8216;the</p>
<p>sum of the first 1 integers is 1&#8242;. This leads directly to the recursive definition:</p>
<p>/* sum the integers from 1 to N (the first argument)</p>
<p>inclusive */</p>
<p>sumto(1,1).</p>
<p>sumto(N,S):-N&gt;1,N1 is N-1,sumto(N1,S1),S is S1+N.</p>
<p><strong>?- sumto(100,N).</strong></p>
<p><strong>N = 5050</strong></p>
<p><strong>?- sumto(1,1).</strong></p>
<p><strong>Yes</strong></p>
<p>Note that using the additional variable <strong>N1 </strong>for holding the value of <strong>N-1 </strong>is</p>
<p>essential. Writing <strong>sumto(N-1,S1) </strong>etc. instead would not work correctly. <strong>N-1 </strong>is a</p>
<p>term, not a numerical value.</p>
<p>Example 4</p>
<p>Define a predicate to output the squares of the first N integers, one per line.</p>
<p>This can most easily be programmed if first recast in a recursive form, as</p>
<p>follows.</p>
<p>To output the squares of the first N integers, output the squares of the first N-1 and</p>
<p>then output N2</p>
<p>To output the squares of the first N-1 integers, output the squares of the first N-2</p>
<p>and then output (N-1)2</p>
<p>To output the squares of the first N-2 integers, output the squares of the first N-3</p>
<p>and then output (N-2)2</p>
<p>……………………………………………………………………………………….</p>
<p>To output the squares of the first 3 integers, output the squares of the first 2 and</p>
<p>then output 32</p>
<p>To output the squares of the first 2 integers, output the squares of the first 1 and</p>
<p>then output 22</p>
<p>To output the squares of the first 1 integers, output the number 1</p>
<p>Here the general case is &#8216;to output the squares of the first N integers, output the</p>
<p>squares of the first N-1 and then output N2&#8242; and the terminating case is &#8216;to output</p>
<p>the squares of the first 1 integers, output the number 1&#8242;. This leads to the following</p>
<p>two-clause program.</p>
<p>/* output the first N squares, one per line */</p>
<p>writesquares(1):-write(1),nl.</p>
<p>writesquares(N):-N&gt;1,N1 is N-1,writesquares(N1),</p>
<p>Nsq is N*N,write(Nsq),nl.</p>
<p><strong>?- writesquares(6).</strong></p>
<p><strong>149</strong></p>
<p><strong>16</strong></p>
<p><strong>25</strong></p>
<p><strong>36</strong></p>
<p><strong>Yes</strong></p>
<p>Example 5</p>
<p>The following program reads the first 6 terms from a specified file and writes them</p>
<p>to the current output stream. It uses a &#8216;counting down&#8217; method, in a similar way to</p>
<p>Example 1.</p>
<p>read_six(Infile):-seeing(S),see(Infile),</p>
<p>process_terms(6),seen,see(S).</p>
<p>process_terms(0).</p>
<p>process_terms(N):-N&gt;0,read(X),write(X),nl,N1 is N-1,</p>
<p>process_terms(N1).</p>
<p><strong>6.2 Looping Until a Condition Is Satisfied</strong></p>
<p>Many languages have an &#8216;until loop&#8217; which enables a set of instructions to be</p>
<p>executed repeatedly until a given condition is met. Again, no such facility is</p>
<p>available directly in Prolog, but a similar effect can be obtained in several ways.</p>
<p><strong>6.2.1 Recursion</strong></p>
<p>The first example below shows the use of recursion to read terms entered by the</p>
<p>user from the keyboard and output them to the screen, until <em>end </em>is encountered.</p>
<p>go:-loop(start). /* start is a dummy value used to get</p>
<p>the looping process started.*/</p>
<p>loop(end).</p>
<p>loop(X):-X\=end,write(&#8216;Type end to end&#8217;),read(Word),</p>
<p>write(&#8216;Input was &#8216;),write(Word),nl,loop(Word).</p>
<p><strong>?- go.</strong></p>
<p><strong>Type end to end: university.</strong></p>
<p><strong>Input was university</strong></p>
<p><strong>Type end to end: of.</strong></p>
<p><strong>Input was of</strong></p>
<p><strong>Type end to end: portsmouth.</strong></p>
<p><strong>Input was portsmouth</strong></p>
<p><strong>Type end to end: end.</strong></p>
<p><strong>Input was end</strong></p>
<p><strong>Yes</strong></p>
<p>Using the disjunction operator <strong>;/2 </strong>which was defined in Section 4.4 the above</p>
<p>program can be rewritten as a single clause.</p>
<p>loop:-write(&#8216;Type end to end&#8217;),read(Word),</p>
<p>write(&#8216;Input was &#8216;),write(Word),nl,</p>
<p>(Word=end;loop).</p>
<p>The &#8216;disjunctive goal&#8217; <strong>(Word=end;loop) </strong>succeeds if variable <em>Word </em>is bound to</p>
<p>the atom <em>end</em>. If not, the system attempts to satisfy the goal <strong>loop </strong>recursively.</p>
<p><strong>?- loop.</strong></p>
<p><strong>Type end to end: university.</strong></p>
<p><strong>Input was university</strong></p>
<p><strong>Type end to end: of.</strong></p>
<p><strong>Input was of</strong></p>
<p><strong>Type end to end: portsmouth.</strong></p>
<p><strong>Input was portsmouth</strong></p>
<p><strong>Type end to end: end.</strong></p>
<p><strong>Input was end</strong></p>
<p><strong>yes</strong></p>
<p>This recursive program repeatedly prompts the user to enter a term until either</p>
<p><em>yes </em>or <em>no </em>is entered.</p>
<p>get_answer(Ans):-write(&#8216;Enter answer to question&#8217;),</p>
<p>nl,get_answer2(Ans).</p>
<p>get_answer2(Ans):-</p>
<p>write(&#8216;answer yes or no&#8217;),</p>
<p>read(A),</p>
<p>((valid(A),Ans=A,write(&#8216;Answer is &#8216;),</p>
<p>write(A),nl);get_answer2(Ans)).</p>
<p>valid(yes). valid(no).</p>
<p><strong>?- get_answer(Myanswer).</strong></p>
<p><strong>Enter answer to question</strong></p>
<p><strong>answer yes or no: maybe.</strong></p>
<p><strong>answer yes or no: possibly.</strong></p>
<p><strong>answer yes or no: yes.</strong></p>
<p><strong>Answer is yes</strong></p>
<p><strong>Myanswer = yes</strong></p>
<p><strong>6.2.2 Using the &#8216;repeat&#8217; Predicate</strong></p>
<p>Although it can often be used to great effect, recursion is not always the easiest</p>
<p>way to provide the types of looping required in Prolog programs. Another method</p>
<p>that is often used is based on the built-in predicate <strong>repeat</strong>.</p>
<p>The name of this predicate is really a misnomer. The goal <strong>repeat </strong>does not</p>
<p>repeat anything; it merely succeeds whenever it is called. The great value of <strong>repeat</strong></p>
<p>is that it also succeeds (as many times as necessary) on backtracking. The effect of</p>
<p>this, as for any other goal succeeding, is to change the order of evaluating goals</p>
<p>from &#8216;right to left&#8217; (i.e. backtracking) back to &#8216;left-to-right&#8217;. This can be used to</p>
<p>create a looping effect, as shown in the examples below.</p>
<p>This program repeatedly prompts the user to enter a term until either <em>yes </em>or <em>no</em></p>
<p>is entered. It is an alternative to the recursive program shown at the end of the</p>
<p>previous section. In this case it is debatable whether using <strong>repeat </strong>is an</p>
<p>improvement on using recursion, but the example is included for purposes of</p>
<p>illustration.</p>
<p>get_answer(Ans):-</p>
<p>write(&#8216;Enter answer to question&#8217;),nl,</p>
<p>repeat,write(&#8216;answer yes or no&#8217;),read(Ans),</p>
<p>valid(Ans),write(&#8216;Answer is &#8216;),write(Ans),nl.</p>
<p>valid(yes). valid(no).</p>
<p>The first five goals in the body of <strong>get_answer </strong>will always succeed. Evaluating</p>
<p>the fifth goal: <strong>read(Ans) </strong>will prompt the user to enter a term. If the term input is</p>
<p>anything but <em>yes </em>or <em>no</em>, say <em>unsure</em>, the following goal <strong>valid(Ans) </strong>will fail. Prolog</p>
<p>will then backtrack over <strong>read(Ans) </strong>and <strong>write(&#8216;answer yes or no&#8217;)</strong>, both of which</p>
<p>are <em>unresatisfiable</em>, i.e. will always fail on backtracking.</p>
<p>Backtracking will then reach the predicate <strong>repeat </strong>and succeed, causing</p>
<p>evaluation to proceed forward (left-to-right) again, with <strong>write(&#8216;answer yes or no&#8217;)</strong></p>
<p>and <strong>read(Ans) </strong>both succeeding, followed by a further evaluation of <strong>valid(Ans)</strong>.</p>
<p>Depending on the value of <strong>Ans</strong>, i.e. the user&#8217;s input, the <strong>valid(Ans) </strong>goal will</p>
<p>either fail, in which case Prolog will backtrack as far as <strong>repeat</strong>, as before, or it will</p>
<p>succeed in which case the final three goals <strong>write(&#8216;Answer is&#8217;)</strong>, <strong>write(Ans) </strong>and <strong>nl</strong></p>
<p>will all succeed. The overall effect is that the two goals <strong>write(&#8216;answer yes or no&#8217;)</strong></p>
<p>and <strong>read(Ans) </strong>are called repeatedly until the terminating condition <strong>valid(Ans) </strong>is</p>
<p>satisfied, effectively creating a loop between <strong>repeat </strong>and <strong>valid(Ans)</strong>.</p>
<p><strong>?- get_answer(X).</strong></p>
<p><strong>Enter answer to question</strong></p>
<p><strong>answer yes or no: unsure.</strong></p>
<p><strong>answer yes or no: possibly.</strong></p>
<p><strong>answer yes or no: no.</strong></p>
<p><strong>answer is no</strong></p>
<p><strong>X = no</strong></p>
<p>Goals to the left of <strong>repeat </strong>in the body of a clause will never be reached on</p>
<p>backtracking.</p>
<p>The next program reads a sequence of terms from a specified file and outputs</p>
<p>them to the current output stream until the term <em>end </em>is encountered.</p>
<p>readterms(Infile):-</p>
<p>seeing(S),see(Infile),</p>
<p>repeat,read(X),write(X),nl,X=end,</p>
<p>seen,see(user).</p>
<p>In a similar way to the previous program, this effectively defines a loop</p>
<p>between the goals <strong>repeat </strong>and <strong>X=end</strong>.</p>
<p>If file <em>myfile.txt </em>contains the lines</p>
<p>&#8216;first term&#8217;. &#8216;second term&#8217;.</p>
<p>&#8216;third term&#8217;. &#8216;fourth term&#8217;.</p>
<p>&#8216;fifth term&#8217;. &#8216;sixth term&#8217;.</p>
<p>&#8216;seventh term&#8217;.</p>
<p>&#8216;eighth term&#8217;.</p>
<p>end.</p>
<p>calling <strong>readterms </strong>will produce the following output</p>
<p><strong>?- readterms(&#8216;myfile.txt&#8217;).</strong></p>
<p><strong>first term</strong></p>
<p><strong>second term</strong></p>
<p><strong>third term</strong></p>
<p><strong>fourth term</strong></p>
<p><strong>fifth term</strong></p>
<p><strong>sixth term</strong></p>
<p><strong>seventh term</strong></p>
<p><strong>eighth term</strong></p>
<p><strong>end</strong></p>
<p><strong>yes</strong></p>
<p>This program shows how to implement a menu structure which loops back</p>
<p>repeatedly to request more input. Entering <strong>go </strong>at the prompt causes Prolog to output</p>
<p>a menu from which the user can choose activities one at a time until option <em>d </em>is</p>
<p>chosen. Note that all inputs are terms and so must be followed by a full stop</p>
<p>character.</p>
<p>go:- write(&#8216;This shows how a repeated menu works&#8217;),</p>
<p>menu.</p>
<p>menu:-nl,write(&#8216;MENU&#8217;),nl,</p>
<p>write(&#8216;a. Activity A&#8217;),nl,write(&#8216;b. Activity B&#8217;),nl,</p>
<p>write(&#8216;c. Activity C&#8217;),nl,write(&#8216;d. End&#8217;),nl,</p>
<p>read(Choice),nl,choice(Choice).</p>
<p>choice(a):-write(&#8216;Activity A chosen&#8217;),menu.</p>
<p>choice(b):-write(&#8216;Activity B chosen&#8217;),menu.</p>
<p>choice(c):-write(&#8216;Activity C chosen&#8217;),menu.</p>
<p>choice(d):-write(&#8216;Goodbye!&#8217;),nl.</p>
<p>choice(_):-write(&#8216;Please try again!&#8217;),menu.</p>
<p><strong>?- go.</strong></p>
<p><strong>This shows how a repeated menu works</strong></p>
<p><strong>MENU</strong></p>
<p><strong>a. Activity A</strong></p>
<p><strong>b. Activity B</strong></p>
<p><strong>c. Activity C</strong></p>
<p><strong>d. End</strong></p>
<p><strong>: b.</strong></p>
<p><strong>Activity B chosen</strong></p>
<p><strong>MENU</strong></p>
<p><strong>a. Activity A</strong></p>
<p><strong>b. Activity B</strong></p>
<p><strong>c. Activity C</strong></p>
<p><strong>d. End</strong></p>
<p><strong>: xxx.</strong></p>
<p><strong>Please try again!</strong></p>
<p><strong>MENU</strong></p>
<p><strong>a. Activity A</strong></p>
<p><strong>b. Activity B</strong></p>
<p><strong>c. Activity C</strong></p>
<p><strong>d. End</strong></p>
<p><strong>: d.</strong></p>
<p><strong>Goodbye!</strong></p>
<p><strong>Yes</strong></p>
<p><strong>6.3 Backtracking with Failure</strong></p>
<p>As the name implies, the predicate <strong>fail </strong>always fails, whether on &#8216;standard&#8217;</p>
<p>evaluation left-to-right or on backtracking. Advantage can be taken of this,</p>
<p>combined with Prolog&#8217;s automatic backtracking, to search through the database to</p>
<p>find all the clauses with a specified property.</p>
<p><strong>6.3.1 Searching the Prolog Database</strong></p>
<p>Supposing the database contains clauses such as</p>
<p>dog(fido).</p>
<p>dog(fred).</p>
<p>dog(jonathan).</p>
<p>Each <strong>dog </strong>clause can be processed in turn using the <strong>alldogs </strong>predicate defined</p>
<p>below.</p>
<p>alldogs:-dog(X),write(X),write(&#8216; is a dog&#8217;),nl,fail.</p>
<p>alldogs.</p>
<p>Calling <strong>alldogs </strong>will cause <strong>dog(X) </strong>to be matched with the <strong>dog </strong>clauses in the</p>
<p>database. Initially <strong>X </strong>will be bound to <em>fido </em>and &#8216;fido is a dog&#8217; will be output. The</p>
<p>final goal in the first clause of the <strong>alldogs </strong>predicate will then cause evaluation to</p>
<p>fail. Prolog will then backtrack over <strong>nl </strong>and the two <strong>write </strong>goals (all of which are</p>
<p>unresatisfiable) until it reaches <strong>dog(X)</strong>. This goal will succeed for a second time</p>
<p>causing <strong>X </strong>to be bound to <em>fred</em>.</p>
<p>This process will continue until <em>fido</em>, <em>fred </em>and <em>jonathan </em>have all been output,</p>
<p>when evaluation will again fail. This time the call to <strong>dog(X) </strong>will also fail as there</p>
<p>are no further <strong>dog </strong>clauses in the database. This will cause the first clause for</p>
<p><strong>alldogs </strong>to fail and Prolog to examine the second clause of <strong>alldogs</strong>. This will</p>
<p>succeed and evaluation will stop.</p>
<p>The effect is to loop through the database finding all possible values of <strong>X </strong>that</p>
<p>satisfy the goal <strong>dog(X)</strong>.</p>
<p><strong>?- alldogs.</strong></p>
<p><strong>fido is a dog</strong></p>
<p><strong>fred is a dog</strong></p>
<p><strong>jonathan is a dog</strong></p>
<p><strong>yes</strong></p>
<p>Note the importance of the second clause of the <strong>alldogs </strong>predicate. It is there to</p>
<p>ensure that, after the database has been searched, the goal succeeds. With only the</p>
<p>first line, any call to <strong>alldogs </strong>will eventually fail.</p>
<p>alldogs:-dog(X),write(X),write(&#8216; is a dog&#8217;),nl,fail.</p>
<p><strong>?- alldogs.</strong></p>
<p><strong>fido is a dog</strong></p>
<p><strong>fred is a dog</strong></p>
<p><strong>jonathan is a dog</strong></p>
<p><strong>no</strong></p>
<p>The next program is designed to search a database containing clauses</p>
<p>representing the name, age, place of residence and occupation of a number of</p>
<p>people.</p>
<p>If the database contains these five clauses</p>
<p>person(john,smith,45,london,doctor).</p>
<p>person(martin,williams,33,birmingham,teacher).</p>
<p>person(henry,smith,26,manchester,plumber).</p>
<p>person(jane,wilson,62,london,teacher).</p>
<p>person(mary,smith,29,glasgow,surveyor).</p>
<p>The names of all the teachers can be found using the <strong>allteachers </strong>predicate.</p>
<p>allteachers:-person(Forename,Surname,_,_,teacher),</p>
<p>write(Forename),write(&#8216; &#8216;),write(Surname),nl,</p>
<p>fail.</p>
<p>allteachers.</p>
<p>The effect of using backtracking with failure in this case is to find all the</p>
<p>teachers in the database.</p>
<p><strong>?- allteachers.</strong></p>
<p><strong>martin williams</strong></p>
<p><strong>jane wilson</strong></p>
<p><strong>yes</strong></p>
<p>If the second clause of <strong>allteachers </strong>were omitted, both teachers would still be</p>
<p>found but the evaluation of <strong>allteachers </strong>would end with failure. This is of little or</p>
<p>no importance when a goal is entered at the system prompt, but if <strong>allteachers </strong>were</p>
<p>used as a goal in the body of a rule it would obviously be desirable to ensure that it</p>
<p>always succeeded.</p>
<p>It should be noted that it is not always necessary to use &#8216;backtracking with</p>
<p>failure&#8217; to search the database. For example, the predicate <strong>somepeople/0 </strong>defined below will find all the people in the database given previously, down to <em>williams</em>,</p>
<p>using only standard backtracking.</p>
<p>somepeople:-person(Forename,Surname,_,_,_),</p>
<p>write(Forename),write(&#8216; &#8216;),write(Surname),nl,</p>
<p>Surname=williams.</p>
<p>somepeople.</p>
<p>The goal <strong>Surname=williams </strong>succeeds if the variable <em>Surname </em>is bound to</p>
<p><em>williams</em>. If not, it fails. The effect is to search the database down to and including</p>
<p>the <strong>person </strong>clause with second argument <em>williams</em>.</p>
<p><strong>?- somepeople.</strong></p>
<p><strong>john smith</strong></p>
<p><strong>martin williams</strong></p>
<p><strong>yes</strong></p>
<p><strong>6.3.2 Finding Multiple Solutions</strong></p>
<p>Backtracking with failure can also be used to find all the ways of satisfying a goal.</p>
<p>Suppose that a predicate <strong>findroute(Town1,Town2,Route) </strong>finds a route <em>Route</em></p>
<p>between two towns <em>Town1 </em>and <em>Town2</em>. The details of this predicate are irrelevant</p>
<p>here. It may be assumed that <em>Town1 </em>and <em>Town2 </em>are atoms and that <em>Route </em>is a list.</p>
<p>Backtracking with failure can then be used to find all possible routes between</p>
<p><em>Town1 </em>and <em>Town2 </em>and write out each one on a separate line, as follows:</p>
<p>find_all_routes(Town1,Town2):-</p>
<p>findroute(Town1,Town2,Route),</p>
<p>write(&#8216;Possible route: &#8216;),write(Route),nl,fail.</p>
<p>find_all_routes(_,_).<strong> </strong></p>
<p><strong> </strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/queenexpecta.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/queenexpecta.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/queenexpecta.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/queenexpecta.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/queenexpecta.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/queenexpecta.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/queenexpecta.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/queenexpecta.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/queenexpecta.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/queenexpecta.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/queenexpecta.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/queenexpecta.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/queenexpecta.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/queenexpecta.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=queenexpecta.wordpress.com&amp;blog=10606893&amp;post=58&amp;subd=queenexpecta&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://queenexpecta.wordpress.com/2009/12/08/summary-of-loops-chp-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/92c1ac2bdee02e1244d77d7ea4eb7a68?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">queenexpecta</media:title>
		</media:content>
	</item>
		<item>
		<title>EXPERT SYSTEM</title>
		<link>http://queenexpecta.wordpress.com/2009/11/24/expert-system-2/</link>
		<comments>http://queenexpecta.wordpress.com/2009/11/24/expert-system-2/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 14:41:14 +0000</pubDate>
		<dc:creator>queenexpecta</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://queenexpecta.wordpress.com/?p=55</guid>
		<description><![CDATA[For example: in a student union that was joking. can be grouped into four types of students can be seen from the everyday tingkahlakunya, namely; 1. nerdy students and get good grades characteristics: =&#62; Class, listening to lecturers =&#62; Do chores =&#62; Finished college to go home =&#62; Less socializing 2. students &#8220;shopaholic&#8221; characteristics: =&#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=queenexpecta.wordpress.com&amp;blog=10606893&amp;post=55&amp;subd=queenexpecta&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For example:</p>
<p>in a student union that was joking. can be grouped into four types of students can be seen from the everyday tingkahlakunya, namely;</p>
<p>1. nerdy students and get good grades<br />
characteristics:<br />
=&gt; Class, listening to lecturers<br />
=&gt; Do chores<br />
=&gt; Finished college to go home<br />
=&gt; Less socializing</p>
<p>2. students &#8220;shopaholic&#8221;<br />
characteristics:<br />
=&gt; Seneng really taken shopping<br />
=&gt; Do not want to work hard for his job<br />
=&gt; Like to work instantly</p>
<p>3. students who liked the demo<br />
characteristics:<br />
=&gt; Lots of talk that is not important<br />
=&gt; Self as a leader<br />
=&gt; Look at the problem from one point of view<br />
=&gt; Lack of respect for teachers</p>
<p>4. Smart students, Critical and Able socializing<br />
=&gt; Faculty honor student<br />
=&gt; Not stingy when asked for help by friends<br />
=&gt; Critical in dealing with problems outside<br />
=&gt; Able to socialize with good</p>
<p>Example:<br />
- If status &#8220;today I will do the work, so later I can not come to the show&#8221; then include the number of students 1<br />
- If the status &#8220;I joined the demo because my friend followed him, too&#8221; then include the student number 3<br />
- If status &#8220;today there is a new movie, pengen nonton&#8221; then include the student number 2<br />
- If status &#8220;today I will learn with friends, tomorrow I will be a presentation of the paper&#8221; then include the student number 4</p>
<p>What if someone has a different type or out of the characteristics of existing,<br />
means the person has two (2) ato more types, but these people must have a dominant type.</p>
<p>By knowing the type &#8211; the type of person, help us how to socialize with that person.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/queenexpecta.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/queenexpecta.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/queenexpecta.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/queenexpecta.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/queenexpecta.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/queenexpecta.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/queenexpecta.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/queenexpecta.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/queenexpecta.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/queenexpecta.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/queenexpecta.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/queenexpecta.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/queenexpecta.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/queenexpecta.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=queenexpecta.wordpress.com&amp;blog=10606893&amp;post=55&amp;subd=queenexpecta&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://queenexpecta.wordpress.com/2009/11/24/expert-system-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/92c1ac2bdee02e1244d77d7ea4eb7a68?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">queenexpecta</media:title>
		</media:content>
	</item>
		<item>
		<title>OPERATOR AND ARITHMETIC 01</title>
		<link>http://queenexpecta.wordpress.com/2009/11/24/operator-and-arithmetic-01/</link>
		<comments>http://queenexpecta.wordpress.com/2009/11/24/operator-and-arithmetic-01/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 14:04:00 +0000</pubDate>
		<dc:creator>queenexpecta</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://queenexpecta.wordpress.com/?p=49</guid>
		<description><![CDATA[lagi lagi kedua<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=queenexpecta.wordpress.com&amp;blog=10606893&amp;post=49&amp;subd=queenexpecta&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="attachment_50" class="wp-caption aligncenter" style="width: 510px"><a href="http://queenexpecta.files.wordpress.com/2009/11/lagi-lagi-kedua.jpg"></p>
<div class="mceTemp mceIEcenter">
<dl class="wp-caption aligncenter">
<dt class="wp-caption-dt"><a href="http://queenexpecta.files.wordpress.com/2009/11/lagi-lagi-kedua1.jpg"><img class="size-full wp-image-52" title="lagi lagi kedua" src="http://queenexpecta.files.wordpress.com/2009/11/lagi-lagi-kedua1.jpg?w=500&#038;h=338" alt="lagi lagi kedua" width="500" height="338" /></a><p class="wp-caption-text">lagi lagi kedua</p></div>
<p><img class="size-full wp-image-50" title="lagi lagi kedua" src="http://queenexpecta.files.wordpress.com/2009/11/lagi-lagi-kedua.jpg?w=500&#038;h=338" alt="lagi lagi kedua" width="500" height="338" /></a></dt>
<dd class="wp-caption-dd">lagi lagi kedua</dd>
</dl>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/queenexpecta.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/queenexpecta.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/queenexpecta.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/queenexpecta.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/queenexpecta.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/queenexpecta.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/queenexpecta.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/queenexpecta.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/queenexpecta.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/queenexpecta.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/queenexpecta.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/queenexpecta.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/queenexpecta.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/queenexpecta.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=queenexpecta.wordpress.com&amp;blog=10606893&amp;post=49&amp;subd=queenexpecta&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://queenexpecta.wordpress.com/2009/11/24/operator-and-arithmetic-01/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/92c1ac2bdee02e1244d77d7ea4eb7a68?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">queenexpecta</media:title>
		</media:content>

		<media:content url="http://queenexpecta.files.wordpress.com/2009/11/lagi-lagi-kedua1.jpg" medium="image">
			<media:title type="html">lagi lagi kedua</media:title>
		</media:content>

		<media:content url="http://queenexpecta.files.wordpress.com/2009/11/lagi-lagi-kedua.jpg" medium="image">
			<media:title type="html">lagi lagi kedua</media:title>
		</media:content>
	</item>
		<item>
		<title>prolog ke-2</title>
		<link>http://queenexpecta.wordpress.com/2009/11/24/expert-system/</link>
		<comments>http://queenexpecta.wordpress.com/2009/11/24/expert-system/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 13:38:25 +0000</pubDate>
		<dc:creator>queenexpecta</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://queenexpecta.wordpress.com/?p=35</guid>
		<description><![CDATA[&#160; kelima lagi Expert system expert system adalah perangkat lunak yang mencoba untuk memberikan jawaban atas suatu masalah, atau mengklarifikasi ketidakpastian di mana biasanya satu atau lebih manusia yang ahli perlu akan dikonsultasikan. Expert system paling umum dalam suatu domain masalah, dan merupakan aplikasi tradisional dan / atau subfield dari kecerdasan buatan. Berbagai macam metode [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=queenexpecta.wordpress.com&amp;blog=10606893&amp;post=35&amp;subd=queenexpecta&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>
<p><strong><strong> </strong></strong></p>
<div class="wp-caption aligncenter" style="width: 510px"><strong><strong></p>
<div class="mceTemp mceIEcenter">
<dl class="wp-caption aligncenter">
<dt class="wp-caption-dt"><strong><strong><a href="http://queenexpecta.files.wordpress.com/2009/11/pertama-lagi.jpg"><img class="size-full wp-image-47" title="pertama lagi" src="http://queenexpecta.files.wordpress.com/2009/11/pertama-lagi.jpg?w=500&#038;h=338" alt="pertama lagi" width="500" height="338" /></a></strong></strong><p class="wp-caption-text">pertama lagi</p></div>
<p><strong> </strong></strong></strong>
<p>&nbsp;</p>
<div class="wp-caption aligncenter" style="width: 510px"><strong><strong><strong><strong><strong><strong><a href="http://queenexpecta.files.wordpress.com/2009/11/kedua-lagi.jpg"><img class="size-full wp-image-45" title="kedua lagi" src="http://queenexpecta.files.wordpress.com/2009/11/kedua-lagi.jpg?w=500&#038;h=338" alt="kedua lagi" width="500" height="338" /></a></strong></strong></strong></strong></strong></strong><p class="wp-caption-text">kedua lagi</p></div>
<p><strong><strong><strong><strong> </strong></strong></strong></strong></p>
<div class="wp-caption aligncenter" style="width: 510px"><strong><strong><strong><strong><strong><strong><strong><strong><a href="http://queenexpecta.files.wordpress.com/2009/11/ketiga-lagi.jpg"><img class="size-full wp-image-43" title="ketiga lagi" src="http://queenexpecta.files.wordpress.com/2009/11/ketiga-lagi.jpg?w=500&#038;h=338" alt="ketiga lagi" width="500" height="338" /></a></strong></strong></strong></strong></strong></strong></strong></strong><p class="wp-caption-text">ketiga lagi</p></div>
<p><strong><strong><strong><strong><a href="http://queenexpecta.files.wordpress.com/2009/11/kelima-lagi.jpg"></a></strong></strong></strong></strong></p>
<div class="wp-caption aligncenter" style="width: 510px"><strong><strong><strong><strong><a href="http://queenexpecta.files.wordpress.com/2009/11/kelima-lagi.jpg"><strong><strong><strong><strong> </strong></strong></strong></strong></a><strong><strong><strong><strong><a href="http://queenexpecta.files.wordpress.com/2009/11/keempat-lagi.jpg"><img class="size-full wp-image-41" title="keempat lagi" src="http://queenexpecta.files.wordpress.com/2009/11/keempat-lagi.jpg?w=500&#038;h=338" alt="keempat lagi" width="500" height="338" /></a></strong></strong></strong></strong></strong></strong></strong></strong><p class="wp-caption-text">keempat lagi</p></div>
<p><strong><strong><strong><strong><img class="size-full wp-image-38" title="kelima lagi" src="http://queenexpecta.files.wordpress.com/2009/11/kelima-lagi.jpg?w=500&#038;h=338" alt="kelima lagi" width="500" height="338" /></strong></strong> </strong></strong></p>
</dt>
<dd class="wp-caption-dd"><strong><strong><strong><strong>kelima lagi</strong></strong> </strong></strong></dd>
</dl>
</div>
<p><strong><strong>Expert system</strong></strong></p>
<p><strong>expert system adalah perangkat lunak yang mencoba untuk memberikan jawaban atas suatu masalah, atau mengklarifikasi ketidakpastian di mana biasanya satu atau lebih manusia yang ahli perlu akan dikonsultasikan. Expert system paling umum dalam suatu domain masalah, dan merupakan aplikasi tradisional dan / atau subfield dari kecerdasan buatan. Berbagai macam metode dapat digunakan untuk mensimulasikan kinerja Namun pakar umum bagi sebagian besar atau semua 1) penciptaan apa yang disebut “pengetahuan” yang menggunakan beberapa representasi pengetahuan formalisme untuk menangkap Subject Matter Expert ’s (UKM ) pengetahuan dan 2) proses pengumpulan pengetahuan itu dari UKM dan kodifikasi itu sesuai dengan formalisme, yang disebut pengetahuan teknik.. Expert system mungkin atau mungkin tidak memiliki komponen belajar tetapi ketiga elemen umum adalah bahwa begitu sistem dikembangkan terbukti dengan menjadi ditempatkan dalam dunia nyata yang sama situasi pemecahan masalah UKM manusia, biasanya sebagai bantuan untuk pekerja manusia atau suplemen untuk beberapa sistem informasi. </strong></p>
<p><strong><strong>Rule-based Expert System</strong></strong></p>
<p><strong>&gt; Representasi Pengetahuan dengan Rules (aturan) sering disebut juga dengan Sistem Produksi<br />
&gt; Suatu Rule Terdiri dari 2 bagian, yaitu:<br />
&gt; Antacedent, yaitu bagian yang mengekspresikan situasi atau premis (Pernyataan berawalan IF)<br />
&gt; Konsekuen, yaitu bagian yang menyatakan suatu tindakan tertentu atau konklusi yang diterapkan jika situasi atau premis bernilai benar (Pernyataan berawalan THEN).</strong></p>
<p><strong>Misalnya:<br />
IF uang bulanan habis<br />
THEN saya meminta kepada orang tua donk<br />
</strong></p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/queenexpecta.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/queenexpecta.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/queenexpecta.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/queenexpecta.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/queenexpecta.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/queenexpecta.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/queenexpecta.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/queenexpecta.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/queenexpecta.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/queenexpecta.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/queenexpecta.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/queenexpecta.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/queenexpecta.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/queenexpecta.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=queenexpecta.wordpress.com&amp;blog=10606893&amp;post=35&amp;subd=queenexpecta&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://queenexpecta.wordpress.com/2009/11/24/expert-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/92c1ac2bdee02e1244d77d7ea4eb7a68?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">queenexpecta</media:title>
		</media:content>

		<media:content url="http://queenexpecta.files.wordpress.com/2009/11/pertama-lagi.jpg" medium="image">
			<media:title type="html">pertama lagi</media:title>
		</media:content>

		<media:content url="http://queenexpecta.files.wordpress.com/2009/11/kedua-lagi.jpg" medium="image">
			<media:title type="html">kedua lagi</media:title>
		</media:content>

		<media:content url="http://queenexpecta.files.wordpress.com/2009/11/ketiga-lagi.jpg" medium="image">
			<media:title type="html">ketiga lagi</media:title>
		</media:content>

		<media:content url="http://queenexpecta.files.wordpress.com/2009/11/keempat-lagi.jpg" medium="image">
			<media:title type="html">keempat lagi</media:title>
		</media:content>

		<media:content url="http://queenexpecta.files.wordpress.com/2009/11/kelima-lagi.jpg" medium="image">
			<media:title type="html">kelima lagi</media:title>
		</media:content>
	</item>
		<item>
		<title>Prolog ke-1</title>
		<link>http://queenexpecta.wordpress.com/2009/11/24/prolog-ke-1/</link>
		<comments>http://queenexpecta.wordpress.com/2009/11/24/prolog-ke-1/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 13:16:20 +0000</pubDate>
		<dc:creator>queenexpecta</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://queenexpecta.wordpress.com/?p=21</guid>
		<description><![CDATA[keempat &#160; kedua<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=queenexpecta.wordpress.com&amp;blog=10606893&amp;post=21&amp;subd=queenexpecta&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="attachment_24" class="wp-caption aligncenter" style="width: 510px"></p>
<div class="mceTemp mceIEcenter">
<dl class="wp-caption aligncenter">
<dt class="wp-caption-dt"><a href="http://queenexpecta.files.wordpress.com/2009/11/keempat1.jpg"></p>
<div class="mceTemp mceIEcenter">
<dl class="wp-caption aligncenter">
<dt class="wp-caption-dt"><a href="http://queenexpecta.files.wordpress.com/2009/11/pertama3.jpg"><img class="size-full wp-image-32" title="pertama" src="http://queenexpecta.files.wordpress.com/2009/11/pertama3.jpg?w=500&#038;h=338" alt="pertama" width="500" height="338" /></a><p class="wp-caption-text">pertama</p></div>
<p><img class="size-full wp-image-30" title="keempat" src="http://queenexpecta.files.wordpress.com/2009/11/keempat1.jpg?w=500&#038;h=338" alt="keempat" width="500" height="338" /></a></dt>
<dd class="wp-caption-dd">keempat</dd>
</dl>
</div>
<p>&nbsp;</p>
<p><a href="http://queenexpecta.files.wordpress.com/2009/11/kedua4.jpg"></a></p>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://queenexpecta.files.wordpress.com/2009/11/ketiga5.jpg"><img class="size-full wp-image-27" title="ketiga" src="http://queenexpecta.files.wordpress.com/2009/11/ketiga5.jpg?w=500&#038;h=338" alt="ketiga" width="500" height="338" /></a><p class="wp-caption-text">ketiga</p></div>
<p><img class="size-full wp-image-24" title="kedua" src="http://queenexpecta.files.wordpress.com/2009/11/kedua4.jpg?w=500&#038;h=338" alt="kedua" width="500" height="338" /></p>
</dt>
<dd class="wp-caption-dd">kedua</dd>
</dl>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/queenexpecta.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/queenexpecta.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/queenexpecta.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/queenexpecta.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/queenexpecta.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/queenexpecta.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/queenexpecta.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/queenexpecta.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/queenexpecta.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/queenexpecta.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/queenexpecta.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/queenexpecta.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/queenexpecta.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/queenexpecta.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=queenexpecta.wordpress.com&amp;blog=10606893&amp;post=21&amp;subd=queenexpecta&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://queenexpecta.wordpress.com/2009/11/24/prolog-ke-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/92c1ac2bdee02e1244d77d7ea4eb7a68?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">queenexpecta</media:title>
		</media:content>

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

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

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

		<media:content url="http://queenexpecta.files.wordpress.com/2009/11/kedua4.jpg" medium="image">
			<media:title type="html">kedua</media:title>
		</media:content>
	</item>
	</channel>
</rss>
