<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1617215519972567180</id><updated>2012-02-15T23:37:29.993-08:00</updated><category term='Journal'/><category term='FP6'/><category term='FP5'/><category term='FP7'/><category term='FP2'/><category term='Tutorial'/><category term='FP3'/><category term='FP4'/><category term='FP8'/><title type='text'>algorithm</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://algorithmproject.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://algorithmproject.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>algorithm</name><uri>http://www.blogger.com/profile/16978558516804510199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1617215519972567180.post-1626562110661105317</id><published>2009-12-22T11:23:00.000-08:00</published><updated>2009-12-22T11:23:34.021-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Journal'/><category scheme='http://www.blogger.com/atom/ns#' term='FP8'/><title type='text'>8th task</title><content type='html'>finally the FP is over..and this is our report..&lt;br /&gt;the file is in pdf format and we also have the tutorial for FP 7 in video(i'll post it later)..&lt;br /&gt;here is the link:&lt;br /&gt;&lt;a href="http://www.mediafire.com/file/zmmzzhjzijj/C:%5Cfakepath%5CDiscrete%20Mathematic%20Report%20Algorithm%20group.pdf"&gt;Discrete Math report &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1617215519972567180-1626562110661105317?l=algorithmproject.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://algorithmproject.blogspot.com/feeds/1626562110661105317/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://algorithmproject.blogspot.com/2009/12/8th-task.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/1626562110661105317'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/1626562110661105317'/><link rel='alternate' type='text/html' href='http://algorithmproject.blogspot.com/2009/12/8th-task.html' title='8th task'/><author><name>algorithm</name><uri>http://www.blogger.com/profile/16978558516804510199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1617215519972567180.post-793772822260721642</id><published>2009-12-20T19:38:00.000-08:00</published><updated>2009-12-20T19:38:05.572-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='FP7'/><title type='text'>7th Task</title><content type='html'>hi friends!!! xD&lt;br /&gt;after long time, finally we've did our 7th task...&lt;br /&gt;this task is about expert system in prolog..&lt;br /&gt;you already read our idea for expert sysytem, didn't you?&lt;br /&gt;&lt;br /&gt;our idea for expert system is type of haircut and glasses for some shape of&amp;nbsp; our face, such as oval, square, oblong, triangular and round...&lt;br /&gt;&lt;br /&gt;these are the tutorial....&lt;br /&gt;&lt;ul&gt;&lt;li&gt;first make a notepad then write down the formula for expert system..this is our formula&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_jjAlaiolhoc/Sy7o6cKDbnI/AAAAAAAAADo/-OExVBlS-xM/s1600-h/Picture3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_jjAlaiolhoc/Sy7o6cKDbnI/AAAAAAAAADo/-OExVBlS-xM/s400/Picture3.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;then write down the shape&amp;nbsp; of&amp;nbsp; your face(oval,square,oblong,triangular or round)..&lt;/li&gt;&lt;li&gt;give a full stop(.) after you write down the type of your face. Then 'ENTER'&lt;/li&gt;&lt;li&gt;you will get the result..and this is the example of the result...&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_jjAlaiolhoc/Sy7qlL1uKXI/AAAAAAAAADw/EQ4zoBMlQH8/s1600-h/Picture1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/_jjAlaiolhoc/Sy7qlL1uKXI/AAAAAAAAADw/EQ4zoBMlQH8/s320/Picture1.png" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_jjAlaiolhoc/Sy7sf5dK2PI/AAAAAAAAAD4/7srat4DdNEs/s1600-h/Picture2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="316" src="http://2.bp.blogspot.com/_jjAlaiolhoc/Sy7sf5dK2PI/AAAAAAAAAD4/7srat4DdNEs/s400/Picture2.png" width="400" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1617215519972567180-793772822260721642?l=algorithmproject.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://algorithmproject.blogspot.com/feeds/793772822260721642/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://algorithmproject.blogspot.com/2009/12/7th-task.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/793772822260721642'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/793772822260721642'/><link rel='alternate' type='text/html' href='http://algorithmproject.blogspot.com/2009/12/7th-task.html' title='7th Task'/><author><name>algorithm</name><uri>http://www.blogger.com/profile/16978558516804510199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_jjAlaiolhoc/Sy7o6cKDbnI/AAAAAAAAADo/-OExVBlS-xM/s72-c/Picture3.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1617215519972567180.post-4938613841795309625</id><published>2009-12-09T15:00:00.000-08:00</published><updated>2009-12-09T15:00:49.898-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='FP6'/><title type='text'>6th task</title><content type='html'>We’ll find who’s the professor from people who listed here and have another job. We will find the professor using looping function of prolog programme&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Make  a new notepad and then write down the input and formula(look at the first picture).&amp;nbsp;&lt;/li&gt;&lt;li&gt;Saving file under the name prof.pl&amp;nbsp;&lt;/li&gt;&lt;li&gt;Consult the file on plwin then write find then ‘ENTER’.&amp;nbsp;&lt;/li&gt;&lt;li&gt;Look at the result at second picture!&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_jjAlaiolhoc/SyAr9bWpTNI/AAAAAAAAADY/Tw0fWXlDLgw/s1600-h/soal+3.pl.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_jjAlaiolhoc/SyAr9bWpTNI/AAAAAAAAADY/Tw0fWXlDLgw/s320/soal+3.pl.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_jjAlaiolhoc/SyAr__TuVyI/AAAAAAAAADg/hnn2gB2_fIQ/s1600-h/soal+3.hasil.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="197" src="http://4.bp.blogspot.com/_jjAlaiolhoc/SyAr__TuVyI/AAAAAAAAADg/hnn2gB2_fIQ/s320/soal+3.hasil.png" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1617215519972567180-4938613841795309625?l=algorithmproject.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://algorithmproject.blogspot.com/feeds/4938613841795309625/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://algorithmproject.blogspot.com/2009/12/6th-task_1722.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/4938613841795309625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/4938613841795309625'/><link rel='alternate' type='text/html' href='http://algorithmproject.blogspot.com/2009/12/6th-task_1722.html' title='6th task'/><author><name>algorithm</name><uri>http://www.blogger.com/profile/16978558516804510199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_jjAlaiolhoc/SyAr9bWpTNI/AAAAAAAAADY/Tw0fWXlDLgw/s72-c/soal+3.pl.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1617215519972567180.post-1804896477710878085</id><published>2009-12-09T14:53:00.000-08:00</published><updated>2009-12-09T14:53:44.951-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='FP6'/><title type='text'>6th task</title><content type='html'>The second excerise is the looping function that made the programme loop every word we typed.&lt;br /&gt;&lt;ul&gt;&lt;li&gt; Make a new notepad and write the formula(look at the first picture).&lt;/li&gt;&lt;li&gt;Save as under the name go.pl&amp;nbsp;&lt;/li&gt;&lt;li&gt;Then consult go.pl in plwin then write go. Then ‘ENTER’.&lt;/li&gt;&lt;li&gt;Now write a word give full stop behind the word (.), then ‘ENTER’.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_jjAlaiolhoc/SyAqRWLHUqI/AAAAAAAAADI/DKce6qL2VZg/s1600-h/soal+2.pl.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_jjAlaiolhoc/SyAqRWLHUqI/AAAAAAAAADI/DKce6qL2VZg/s320/soal+2.pl.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_jjAlaiolhoc/SyAqTkwBdJI/AAAAAAAAADQ/lMIpV5468mc/s1600-h/soal+2.hasil.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_jjAlaiolhoc/SyAqTkwBdJI/AAAAAAAAADQ/lMIpV5468mc/s320/soal+2.hasil.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1617215519972567180-1804896477710878085?l=algorithmproject.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://algorithmproject.blogspot.com/feeds/1804896477710878085/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://algorithmproject.blogspot.com/2009/12/6th-task_09.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/1804896477710878085'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/1804896477710878085'/><link rel='alternate' type='text/html' href='http://algorithmproject.blogspot.com/2009/12/6th-task_09.html' title='6th task'/><author><name>algorithm</name><uri>http://www.blogger.com/profile/16978558516804510199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_jjAlaiolhoc/SyAqRWLHUqI/AAAAAAAAADI/DKce6qL2VZg/s72-c/soal+2.pl.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1617215519972567180.post-4296293358726335303</id><published>2009-12-09T14:46:00.001-08:00</published><updated>2009-12-09T14:46:34.809-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='FP6'/><title type='text'>6th task</title><content type='html'>&lt;br /&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CUsers%5CEunZie%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CUsers%5CEunZie%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_editdata.mso" rel="Edit-Time-Data"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CUsers%5CEunZie%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CUsers%5CEunZie%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml" rel="colorSchemeMapping"&gt;&lt;/link&gt;&lt;style&gt;&lt;!-- /* Font Definitions */ @font-face	{font-family:"Cambria Math";	panose-1:2 4 5 3 5 4 6 3 2 4;	mso-font-charset:1;	mso-generic-font-family:roman;	mso-font-format:other;	mso-font-pitch:variable;	mso-font-signature:0 0 0 0 0 0;}@font-face	{font-family:Calibri;	panose-1:2 15 5 2 2 2 4 3 2 4;	mso-font-charset:0;	mso-generic-font-family:swiss;	mso-font-pitch:variable;	mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal	{mso-style-unhide:no;	mso-style-qformat:yes;	mso-style-parent:"";	margin-top:0cm;	margin-right:0cm;	margin-bottom:10.0pt;	margin-left:0cm;	line-height:115%;	mso-pagination:widow-orphan;	font-size:11.0pt;	font-family:"Calibri","sans-serif";	mso-ascii-font-family:Calibri;	mso-ascii-theme-font:minor-latin;	mso-fareast-font-family:Calibri;	mso-fareast-theme-font:minor-latin;	mso-hansi-font-family:Calibri;	mso-hansi-theme-font:minor-latin;	mso-bidi-font-family:"Times New Roman";	mso-bidi-theme-font:minor-bidi;	mso-ansi-language:EN-US;	mso-fareast-language:EN-US;}p	{mso-style-priority:99;	mso-margin-top-alt:auto;	margin-right:0cm;	mso-margin-bottom-alt:auto;	margin-left:0cm;	mso-pagination:widow-orphan;	font-size:12.0pt;	font-family:"Times New Roman","serif";	mso-fareast-font-family:"Times New Roman";	mso-ansi-language:EN-US;	mso-fareast-language:EN-US;}.MsoChpDefault	{mso-style-type:export-only;	mso-default-props:yes;	mso-ascii-font-family:Calibri;	mso-ascii-theme-font:minor-latin;	mso-fareast-font-family:Calibri;	mso-fareast-theme-font:minor-latin;	mso-hansi-font-family:Calibri;	mso-hansi-theme-font:minor-latin;	mso-bidi-font-family:"Times New Roman";	mso-bidi-theme-font:minor-bidi;	mso-ansi-language:EN-US;	mso-fareast-language:EN-US;}.MsoPapDefault	{mso-style-type:export-only;	margin-bottom:10.0pt;	line-height:115%;}@page Section1	{size:612.0pt 792.0pt;	margin:72.0pt 72.0pt 72.0pt 72.0pt;	mso-header-margin:35.4pt;	mso-footer-margin:35.4pt;	mso-paper-source:0;}div.Section1	{page:Section1;} /* List Definitions */ @list l0	{mso-list-id:1368607700;	mso-list-type:hybrid;	mso-list-template-ids:1453079148 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}@list l0:level1	{mso-level-tab-stop:none;	mso-level-number-position:left;	text-indent:-18.0pt;}ol	{margin-bottom:0cm;}ul	{margin-bottom:0cm;}--&gt;&lt;/style&gt;&lt;br /&gt;&lt;span lang="EN-US"&gt;Loops &lt;/span&gt;in&lt;span lang="EN-US"&gt; prolog programme &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;We will make a looping to get know about the square ofsome number&lt;/li&gt;&lt;li&gt;Make a new notepad file thenwrite the formula(look at the first picture).&lt;/li&gt;&lt;li&gt;&lt;span lang="EN-US"&gt;Save file under the nameloop1.pl&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span lang="EN-US"&gt;Now open loop1.pl, then writedown &lt;b&gt;outsquare(4,9)&lt;/b&gt;* then ‘ENTER’.You’ll see the result like this. We’&lt;/span&gt;llsee the result of squared from number 3until number 10 (we just need to writethe command once and then the result will be looping if the condition is &lt;b&gt;true &lt;/b&gt;)&lt;/li&gt;&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_jjAlaiolhoc/SyAnKAyCDgI/AAAAAAAAAC4/f1wV3X7BYNE/s1600-h/soal+1.pl.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_jjAlaiolhoc/SyAnKAyCDgI/AAAAAAAAAC4/f1wV3X7BYNE/s320/soal+1.pl.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href="http://2.bp.blogspot.com/_jjAlaiolhoc/SyAnNiGh1gI/AAAAAAAAADA/ZLNk8fUqLgs/s1600-h/soal+1.hasil.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_jjAlaiolhoc/SyAnNiGh1gI/AAAAAAAAADA/ZLNk8fUqLgs/s320/soal+1.hasil.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="margin-left: 36pt; text-indent: -18pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-left: 36pt;"&gt;&lt;span lang="EN-US"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="EN-US"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span lang="EN-US"&gt;P.S&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span lang="EN-US"&gt;(4,9) : &lt;/span&gt;&lt;/b&gt;&lt;span lang="EN-US"&gt;Actually you may write another number, but make sure that the firstnumber is lower than second number.^^&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;/ul&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1617215519972567180-4296293358726335303?l=algorithmproject.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://algorithmproject.blogspot.com/feeds/4296293358726335303/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://algorithmproject.blogspot.com/2009/12/6th-task.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/4296293358726335303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/4296293358726335303'/><link rel='alternate' type='text/html' href='http://algorithmproject.blogspot.com/2009/12/6th-task.html' title='6th task'/><author><name>algorithm</name><uri>http://www.blogger.com/profile/16978558516804510199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_jjAlaiolhoc/SyAnKAyCDgI/AAAAAAAAAC4/f1wV3X7BYNE/s72-c/soal+1.pl.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1617215519972567180.post-6606362962657225159</id><published>2009-12-08T06:56:00.000-08:00</published><updated>2009-12-09T14:54:37.594-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FP6'/><title type='text'>Resume bab 6</title><content type='html'>&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CUsers%5CCompaq%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CUsers%5CCompaq%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CUsers%5CCompaq%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml" rel="colorSchemeMapping"&gt;&lt;/link&gt;   &lt;m:smallfrac m:val="off"&gt;   &lt;m:dispdef&gt;   &lt;m:lmargin m:val="0"&gt;   &lt;m:rmargin m:val="0"&gt;   &lt;m:defjc m:val="centerGroup"&gt;   &lt;m:wrapindent m:val="1440"&gt;   &lt;m:intlim m:val="subSup"&gt;   &lt;m:narylim m:val="undOvr"&gt;  &lt;/m:narylim&gt;&lt;/m:intlim&gt;&lt;/m:wrapindent&gt;&lt;style&gt;&lt;!-- /* Font Definitions */ @font-face	{font-family:Courier;	panose-1:2 7 4 9 2 2 5 2 4 4;	mso-font-alt:"Courier New";	mso-font-charset:0;	mso-generic-font-family:modern;	mso-font-format:other;	mso-font-pitch:fixed;	mso-font-signature:3 0 0 0 1 0;}@font-face	{font-family:Wingdings;	panose-1:5 0 0 0 0 0 0 0 0 0;	mso-font-charset:2;	mso-generic-font-family:auto;	mso-font-pitch:variable;	mso-font-signature:0 268435456 0 0 -2147483648 0;}@font-face	{font-family:"Cambria Math";	panose-1:2 4 5 3 5 4 6 3 2 4;	mso-font-charset:0;	mso-generic-font-family:roman;	mso-font-pitch:variable;	mso-font-signature:-1610611985 1107304683 0 0 159 0;}@font-face	{font-family:Calibri;	panose-1:2 15 5 2 2 2 4 3 2 4;	mso-font-charset:0;	mso-generic-font-family:swiss;	mso-font-pitch:variable;	mso-font-signature:-1610611985 1073750139 0 0 159 0;}@font-face	{font-family:Times-Roman;	panose-1:0 0 0 0 0 0 0 0 0 0;	mso-font-charset:0;	mso-generic-font-family:auto;	mso-font-format:other;	mso-font-pitch:auto;	mso-font-signature:3 0 0 0 1 0;}@font-face	{font-family:"Century Gothic";	panose-1:2 11 5 2 2 2 2 2 2 4;	mso-font-charset:0;	mso-generic-font-family:swiss;	mso-font-pitch:variable;	mso-font-signature:647 0 0 0 159 0;}@font-face	{font-family:Times-Bold;	panose-1:0 0 0 0 0 0 0 0 0 0;	mso-font-charset:0;	mso-generic-font-family:auto;	mso-font-format:other;	mso-font-pitch:auto;	mso-font-signature:3 0 0 0 1 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal	{mso-style-unhide:no;	mso-style-qformat:yes;	mso-style-parent:"";	margin-top:0cm;	margin-right:0cm;	margin-bottom:10.0pt;	margin-left:0cm;	line-height:115%;	mso-pagination:widow-orphan;	font-size:11.0pt;	font-family:"Calibri","sans-serif";	mso-fareast-font-family:Calibri;	mso-bidi-font-family:"Times New Roman";	mso-fareast-language:EN-US;}p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph	{mso-style-priority:34;	mso-style-unhide:no;	mso-style-qformat:yes;	margin-top:0cm;	margin-right:0cm;	margin-bottom:10.0pt;	margin-left:36.0pt;	mso-add-space:auto;	line-height:115%;	mso-pagination:widow-orphan;	font-size:11.0pt;	font-family:"Calibri","sans-serif";	mso-fareast-font-family:Calibri;	mso-bidi-font-family:"Times New Roman";	mso-fareast-language:EN-US;}p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst	{mso-style-priority:34;	mso-style-unhide:no;	mso-style-qformat:yes;	mso-style-type:export-only;	margin-top:0cm;	margin-right:0cm;	margin-bottom:0cm;	margin-left:36.0pt;	margin-bottom:.0001pt;	mso-add-space:auto;	line-height:115%;	mso-pagination:widow-orphan;	font-size:11.0pt;	font-family:"Calibri","sans-serif";	mso-fareast-font-family:Calibri;	mso-bidi-font-family:"Times New Roman";	mso-fareast-language:EN-US;}p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle	{mso-style-priority:34;	mso-style-unhide:no;	mso-style-qformat:yes;	mso-style-type:export-only;	margin-top:0cm;	margin-right:0cm;	margin-bottom:0cm;	margin-left:36.0pt;	margin-bottom:.0001pt;	mso-add-space:auto;	line-height:115%;	mso-pagination:widow-orphan;	font-size:11.0pt;	font-family:"Calibri","sans-serif";	mso-fareast-font-family:Calibri;	mso-bidi-font-family:"Times New Roman";	mso-fareast-language:EN-US;}p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast	{mso-style-priority:34;	mso-style-unhide:no;	mso-style-qformat:yes;	mso-style-type:export-only;	margin-top:0cm;	margin-right:0cm;	margin-bottom:10.0pt;	margin-left:36.0pt;	mso-add-space:auto;	line-height:115%;	mso-pagination:widow-orphan;	font-size:11.0pt;	font-family:"Calibri","sans-serif";	mso-fareast-font-family:Calibri;	mso-bidi-font-family:"Times New Roman";	mso-fareast-language:EN-US;}.MsoChpDefault	{mso-style-type:export-only;	mso-default-props:yes;	font-size:10.0pt;	mso-ansi-font-size:10.0pt;	mso-bidi-font-size:10.0pt;	mso-ascii-font-family:Calibri;	mso-fareast-font-family:Calibri;	mso-hansi-font-family:Calibri;	mso-ansi-language:EN-US;	mso-fareast-language:EN-US;}@page Section1	{size:595.3pt 841.9pt;	margin:72.0pt 72.0pt 72.0pt 72.0pt;	mso-header-margin:35.4pt;	mso-footer-margin:35.4pt;	mso-paper-source:0;}div.Section1	{page:Section1;} /* List Definitions */ @list l0	{mso-list-id:1374964094;	mso-list-type:hybrid;	mso-list-template-ids:87210828 1039559034 69271555 69271557 69271553 69271555 69271557 69271553 69271555 69271557;}@list l0:level1	{mso-level-start-at:6;	mso-level-number-format:bullet;	mso-level-text:-;	mso-level-tab-stop:none;	mso-level-number-position:left;	margin-left:32.2pt;	text-indent:-18.0pt;	font-family:"Calibri","sans-serif";	mso-fareast-font-family:Calibri;	mso-bidi-font-family:Courier;}ol	{margin-bottom:0cm;}ul	{margin-bottom:0cm;}--&gt;&lt;/style&gt;&lt;/m:defjc&gt;&lt;/m:rmargin&gt;&lt;/m:lmargin&gt;&lt;/m:dispdef&gt;&lt;/m:smallfrac&gt;&lt;br /&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US"&gt;RESUME&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;6.1 LOOPING A FIXED NUMBER OF TIMES&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;Loops enable a set of instructions to be executed a fixednumber of times. In prolog, looping can be obtained using recursion. In thiscase, looping function on PROLOG is similiar to another programming language.We can see in the example given below:&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Courier; font-size: 10pt;"&gt;loop(0).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Courier; font-size: 10pt;"&gt;loop(N):-N&amp;gt;0,write('Thevalue is: '),write(N),nl,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: Courier; font-size: 10pt; line-height: 115%;"&gt;M is N-1,loop(M).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-size: 10pt; line-height: 115%;"&gt;Those clauses means that ‘the terminating condition of the recurtionis 0. To loop from N, first determine the value of N, then substract it tohaving M, then loop from M, until the value is 0. If the value is 0, thelooping process is stopped there’&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-size: 10pt; line-height: 115%;"&gt;6.2 LOOPING UNTIL A CONDITION IS SATISFIED&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 10pt;"&gt;No facility on PROLOG that directly enable&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;a set ofinstructions to be executed repeatedly until a given condition is met.&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt; But there are two way toobtained the similiar effect :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: normal; margin: 0cm 0cm 0.0001pt 32.2pt; text-indent: -18pt;"&gt;&lt;span style="font-size: 10pt;"&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;u&gt;&lt;span style="font-size: 10pt;"&gt;Recursion&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 10pt;"&gt;Recursion read the input fromkeyboard, and output it to the screen, until the ‘end’ instruction isendountered.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 10pt;"&gt;Example of the form :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0.0001pt 36pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0.0001pt 36pt;"&gt;&lt;span style="font-family: Courier; font-size: 10pt;"&gt;go:-loop(start). /* start is a dummy value usedto get&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-indent: 36pt;"&gt;&lt;span style="font-family: Courier; font-size: 10pt;"&gt;thelooping process started.*/&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-indent: 36pt;"&gt;&lt;span style="font-family: Courier; font-size: 10pt;"&gt;loop(end).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-indent: 36pt;"&gt;&lt;span style="font-family: Courier; font-size: 10pt;"&gt;loop(X):-X\=end,write('Typeend to end'),read(Word),&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: normal; margin-bottom: 0.0001pt; text-indent: 36pt;"&gt;&lt;span style="font-family: Courier; font-size: 10pt;"&gt;write('Input was '),write(Word),nl,loop(Word).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 10pt;"&gt;The last clauses mean: The looping ofX will be stopped if the ‘end’ is encountered. Saat looping berlangsung (before‘end’ had encountered), PROLOG will always ask the user to enter the input bythe sentence ‘Type end to end’ .&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoListParagraph" style="line-height: normal; margin: 0cm 0cm 0.0001pt 32.2pt; text-indent: -18pt;"&gt;&lt;span style="font-size: 10pt;"&gt;-&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;u&gt;&lt;span style="font-size: 10pt;"&gt;Using the ‘repeat’ Predicate&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 10pt;"&gt;The goal repeat doesn’t repeatanything, it will be succeeds whenever it’s being called. If user enter anotherterm but yes or no, PROLOG will always repeat the instruction until the userenter the term ‘yes’ or ‘no’. This is the example of the form :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin: 0cm 0cm 0.0001pt 36pt;"&gt;&lt;span style="font-family: Courier; font-size: 10pt;"&gt;get_answer(Ans):-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-indent: 36pt;"&gt;&lt;span style="font-family: Courier; font-size: 10pt;"&gt;write('Enteranswer to question'),nl,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-indent: 36pt;"&gt;&lt;span style="font-family: Courier; font-size: 10pt;"&gt;repeat,write('answeryes or no'),read(Ans),&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-indent: 36pt;"&gt;&lt;span style="font-family: Courier; font-size: 10pt;"&gt;valid(Ans),write('Answeris '),write(Ans),nl.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-indent: 36pt;"&gt;&lt;span style="font-family: Courier; font-size: 10pt;"&gt;valid(yes).valid(no).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 10pt;"&gt;In the case of looping, the two goals &lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;write(‘answer yes or no’)&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt; and read(Ans) willalways repeat until the condition &lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;valid(Ans)&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt; had satisfied.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 10pt;"&gt;Repeat predicate can also processingthe sequence of terms from a specified file an outputs them until the term‘end’ is encountered.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 10pt;"&gt;The example of the form :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Courier; font-size: 10pt;"&gt;readterms(Infile):-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-indent: 36pt;"&gt;&lt;span style="font-family: Courier; font-size: 10pt;"&gt;seeing(S),see(Infile),&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-indent: 36pt;"&gt;&lt;span style="font-family: Courier; font-size: 10pt;"&gt;repeat,read(X),write(X),nl,X=end,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-indent: 36pt;"&gt;&lt;span style="font-family: Courier; font-size: 10pt;"&gt;seen,see(user).&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 10pt;"&gt;Then, the file that will beingoutputted containing (for example, the file ‘myfile.txt’ :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-indent: 36pt;"&gt;&lt;span style="font-family: &amp;quot;Century Gothic&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;"&gt;'first term'. 'second term'.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-indent: 36pt;"&gt;&lt;span style="font-family: &amp;quot;Century Gothic&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;"&gt;'third term'. 'fourth term'.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-indent: 36pt;"&gt;&lt;span style="font-family: &amp;quot;Century Gothic&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;"&gt;'fifth term'. 'sixth term'.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-indent: 36pt;"&gt;&lt;span style="font-family: &amp;quot;Century Gothic&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;"&gt;'seventh term'.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-indent: 36pt;"&gt;&lt;span style="font-family: &amp;quot;Century Gothic&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;"&gt;'eighth term'.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-indent: 36pt;"&gt;&lt;span style="font-family: &amp;quot;Century Gothic&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 10pt;"&gt;end.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 10pt;"&gt;Then, call the goal readterms willproduced a result :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Bold; font-size: 10pt;"&gt;?- readterms('myfile.txt').&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Bold; font-size: 10pt;"&gt;first term&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Bold; font-size: 10pt;"&gt;second term&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Bold; font-size: 10pt;"&gt;third term&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Bold; font-size: 10pt;"&gt;fourth term&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Bold; font-size: 10pt;"&gt;fifth term&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Bold; font-size: 10pt;"&gt;sixth term&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Bold; font-size: 10pt;"&gt;seventh term&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Bold; font-size: 10pt;"&gt;eighth term&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Bold; font-size: 10pt;"&gt;end&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Bold; font-size: 10pt;"&gt;yes&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 10pt;"&gt;If ‘end’ hasn’t been encountered,there will be a looping process between the goals &lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;repeat&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt; and &lt;/span&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;X=end&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 10pt;"&gt;6.3 BACKTRACKING WITH FAILURE&lt;/span&gt;&lt;span lang="EN-US" style="font-size: 10pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;This chapterdescribes how a set of goals can be evaluated repeatedly in Prolog,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;either a fixednumber of times or until a specified condition is met, and how&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;multiplesolutions can be arrived at using the technique of 'backtracking with&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt; line-height: 115%;"&gt;failure'.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1617215519972567180-6606362962657225159?l=algorithmproject.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://algorithmproject.blogspot.com/feeds/6606362962657225159/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://algorithmproject.blogspot.com/2009/12/resume-bab-6.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/6606362962657225159'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/6606362962657225159'/><link rel='alternate' type='text/html' href='http://algorithmproject.blogspot.com/2009/12/resume-bab-6.html' title='Resume bab 6'/><author><name>algorithm</name><uri>http://www.blogger.com/profile/16978558516804510199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1617215519972567180.post-1233470742016690622</id><published>2009-11-25T12:06:00.000-08:00</published><updated>2009-12-09T14:54:47.561-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FP5'/><title type='text'>resume bab 5</title><content type='html'>&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5CAcer%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5CAcer%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_editdata.mso" rel="Edit-Time-Data"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5CAcer%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5CAcer%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml" rel="colorSchemeMapping"&gt;&lt;/link&gt;   &lt;m:smallfrac m:val="off"&gt;   &lt;m:dispdef&gt;   &lt;m:lmargin m:val="0"&gt;   &lt;m:rmargin m:val="0"&gt;   &lt;m:defjc m:val="centerGroup"&gt;   &lt;m:wrapindent m:val="1440"&gt;   &lt;m:intlim m:val="subSup"&gt;   &lt;m:narylim m:val="undOvr"&gt;  &lt;/m:narylim&gt;&lt;/m:intlim&gt;&lt;/m:wrapindent&gt;&lt;style&gt;&lt;!-- /* Font Definitions */ @font-face	{font-family:SimSun;	panose-1:2 1 6 0 3 1 1 1 1 1;	mso-font-alt:宋体;	mso-font-charset:134;	mso-generic-font-family:auto;	mso-font-format:other;	mso-font-pitch:variable;	mso-font-signature:1 135135232 16 0 262144 0;}@font-face	{font-family:"Cambria Math";	panose-1:2 4 5 3 5 4 6 3 2 4;	mso-font-charset:0;	mso-generic-font-family:roman;	mso-font-pitch:variable;	mso-font-signature:-1610611985 1107304683 0 0 159 0;}@font-face	{font-family:Calibri;	panose-1:2 15 5 2 2 2 4 3 2 4;	mso-font-charset:0;	mso-generic-font-family:swiss;	mso-font-pitch:variable;	mso-font-signature:-1610611985 1073750139 0 0 159 0;}@font-face	{font-family:Times-Roman;	panose-1:0 0 0 0 0 0 0 0 0 0;	mso-font-charset:0;	mso-generic-font-family:auto;	mso-font-format:other;	mso-font-pitch:auto;	mso-font-signature:3 0 0 0 1 0;}@font-face	{font-family:"\@SimSun";	panose-1:0 0 0 0 0 0 0 0 0 0;	mso-font-charset:134;	mso-generic-font-family:auto;	mso-font-format:other;	mso-font-pitch:variable;	mso-font-signature:1 135135232 16 0 262144 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal	{mso-style-unhide:no;	mso-style-qformat:yes;	mso-style-parent:"";	margin-top:0cm;	margin-right:0cm;	margin-bottom:10.0pt;	margin-left:0cm;	line-height:115%;	mso-pagination:widow-orphan;	font-size:11.0pt;	font-family:"Calibri","sans-serif";	mso-fareast-font-family:SimSun;	mso-bidi-font-family:Arial;	mso-fareast-language:ZH-CN;}span.longtext	{mso-style-name:long_text;	mso-style-unhide:no;}span.mediumtext	{mso-style-name:medium_text;	mso-style-unhide:no;}span.shorttext	{mso-style-name:short_text;	mso-style-unhide:no;}.MsoChpDefault	{mso-style-type:export-only;	mso-default-props:yes;	font-size:10.0pt;	mso-ansi-font-size:10.0pt;	mso-bidi-font-size:10.0pt;	mso-ascii-font-family:Calibri;	mso-fareast-font-family:SimSun;	mso-hansi-font-family:Calibri;	mso-bidi-font-family:Arial;}@page Section1	{size:612.0pt 792.0pt;	margin:72.0pt 72.0pt 72.0pt 72.0pt;	mso-header-margin:36.0pt;	mso-footer-margin:36.0pt;	mso-paper-source:0;}div.Section1	{page:Section1;}--&gt;&lt;/style&gt;&lt;/m:defjc&gt;&lt;/m:rmargin&gt;&lt;/m:lmargin&gt;&lt;/m:dispdef&gt;&lt;/m:smallfrac&gt;&lt;br /&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Bab 5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Inputdan Output&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Pendahuluan:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Prologmemiliki fasilitas untuk mengaktifkan input dan output baik dari istilah ataukarakter.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Menggunakanistilah lebih sederhana dan akan dijelaskan terlebih dahulu.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;5,1Outputing &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fungsinya untuk mencetak write/1 danwriteq/1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; perbedaan write/1 : saat mencetak outputnyadibutuhkan tanda petik, baik di awal dan di akhir&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sedangkan writeq/1 : ketika mengeluarkanoutputnya tidak memrlukan tanda petik baik di awal atau di akhir&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; built-in predicate nl/0 akan membuat barisbaru pada hasil outputnya &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; contoh :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; untuk write/1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ?- write('a string ofcharacters'),nl.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a string of characters&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; untuk writeq/1&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ?- writeq('a string ofcharacters'),nl.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'a string of characters'&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;5.2Inputing terms&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Predikat read/1 dibutuhkan dalampenginputan yang membutuhkan sebuah argument dan berupa variabel.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dalam penginputannya juga dibutuhkan tandatitik (.)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; istilah input disatukan dengan argumen&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; variabel. Jika variabel tidak terikat (yangbiasanya terjadi) itu adalah terikat pada&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; masukan nilai.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; contoh : &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ?- read(Y).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 'a string of characters'.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y = 'a string of characters'&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; atau&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ?- read(X).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 26.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X = 26&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jika variabel argumen sudah terikat(sebagian kesalahan terjadi karena kelasalahan [engguna itu sendiri), berhasiljika dan hanya jika&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; masukan istilah adalah identikdengan nilai terikat sebelumnya.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; contoh :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ?- X=fred,read(X).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : jim.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; no ==&amp;gt; disini "no"maksudnya kata jim tidak ada dalam variabel x&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;5.3 &amp;nbsp;Input and Output Using Characters&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Menggunakan syarat-syarat yaitu penggunaantanda kutip dan penuh&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;berhentidapat menjadi rumit dan tidak selalu sesuai.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="height: 191px; margin-left: 480px; margin-top: 22px; position: absolute; width: 138px; z-index: 251658240;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;table cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt;&lt;tr&gt;  &lt;td bgcolor="white" height="191" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: white none repeat scroll 0% 0%; border: 0.75pt solid black; vertical-align: top;" width="138"&gt;&lt;span style="position: absolute; z-index: 251658240;"&gt;  &lt;/span&gt;&lt;br /&gt;&lt;table cellpadding="0" cellspacing="0"&gt;   &lt;tbody&gt;&lt;tr&gt;    &lt;td&gt;&lt;div class="shape" style="padding: 4.35pt 7.95pt;" v:shape="_x0000_s1029"&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;94    : ^&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;95    :_&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;96    :`&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;97:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;122    :a to z&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;123    :{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;124    |:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;125    :}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt; line-height: 115%;"&gt;126 :~&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span style="height: 191px; margin-left: 480px; margin-top: 22px; position: absolute; width: 138px; z-index: 251658240;"&gt;&lt;/span&gt;&lt;span style="height: 191px; margin-left: 332px; margin-top: 22px; position: absolute; width: 138px; z-index: 251657216;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;table cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt;&lt;tr&gt;  &lt;td bgcolor="white" height="191" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: white none repeat scroll 0% 0%; border: 0.75pt solid black; vertical-align: top;" width="138"&gt;&lt;span style="position: absolute; z-index: 251657216;"&gt;  &lt;/span&gt;&lt;br /&gt;&lt;table cellpadding="0" cellspacing="0"&gt;   &lt;tbody&gt;&lt;tr&gt;    &lt;td&gt;&lt;div class="shape" style="padding: 4.35pt 7.95pt;" v:shape="_x0000_s1028"&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;59:    ;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;60    :&amp;lt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;61    :=&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;62    :&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;63    :?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;64:    @&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;65:-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;90    : A to Z&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;91    : [&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;92    : \&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt; line-height: 115%;"&gt;93 :]&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span style="height: 191px; margin-left: 332px; margin-top: 22px; position: absolute; width: 138px; z-index: 251657216;"&gt;&lt;/span&gt;&lt;span style="height: 191px; margin-left: 184px; margin-top: 22px; position: absolute; width: 138px; z-index: 251656192;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;table cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt;&lt;tr&gt;  &lt;td bgcolor="white" height="191" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: white none repeat scroll 0% 0%; border: 0.75pt solid black; vertical-align: top;" width="138"&gt;&lt;span style="position: absolute; z-index: 251656192;"&gt;  &lt;/span&gt;&lt;br /&gt;&lt;table cellpadding="0" cellspacing="0"&gt;   &lt;tbody&gt;&lt;tr&gt;    &lt;td&gt;&lt;div class="shape" style="padding: 4.35pt 7.95pt;" v:shape="_x0000_s1027"&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;40:    (&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;41    :)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;42    :*&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;43    :+&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;44    :,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;45    :-&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;46    :.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;47    :/&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;48-57:    0 to 9&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt; line-height: 115%;"&gt;58 ::&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span style="height: 191px; margin-left: 184px; margin-top: 22px; position: absolute; width: 138px; z-index: 251656192;"&gt;&lt;/span&gt;&lt;span style="height: 191px; margin-left: 11px; margin-top: 22px; position: absolute; width: 154px; z-index: 251655168;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;table cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt;&lt;tr&gt;  &lt;td bgcolor="white" height="191" style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: white none repeat scroll 0% 0%; border: 0.75pt solid black; vertical-align: top;" width="154"&gt;&lt;span style="position: absolute; z-index: 251655168;"&gt;  &lt;/span&gt;&lt;br /&gt;&lt;table cellpadding="0" cellspacing="0"&gt;   &lt;tbody&gt;&lt;tr&gt;    &lt;td&gt;&lt;div class="shape" style="padding: 4.35pt 7.95pt;" v:shape="_x0000_s1026"&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;9&amp;nbsp;&amp;nbsp; : tab &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;10    : end of record&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;32    :space&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;33    :!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;34    :"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;35    :#&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;36    :$&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;37    :%&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt;"&gt;38    :&amp;amp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: Times-Roman; font-size: 10pt; line-height: 115%;"&gt;39 :'&lt;/span&gt;&lt;span style="font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span style="height: 191px; margin-left: 11px; margin-top: 22px; position: absolute; width: 154px; z-index: 251655168;"&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Contoh :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="right" class="MsoNormal" style="text-align: right;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="right" class="MsoNormal" style="text-align: right;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="right" class="MsoNormal" style="text-align: right;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;NilaiASCII karakter yang kurang dari atau sama dengan 32 yang dikenal sebagai putih&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;ruangkarakter.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;5.4 Outputting Characters&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Karakteroutput menggunakan built-in predicate put/1..&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Karakterput akn menyebabkan satu karakter di outputnya . Ini adalah karakter yangsesuai dengan nilai numerik (ASCII nilai) dari argumen, misalnya :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ?- put(97),nl.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt; text-indent: 36pt;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;a&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="text-indent: 36pt;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;yes &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;5.5 Inputting Characters&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;PredikatTwo built-in untuk memasukan inputan satu karakter get0/1 and get/1. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Maksuddari get0/1 adalah untuk satu karakter&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Contoh :&lt;br /&gt;?- get0(N).&lt;br /&gt;: a&lt;br /&gt;N = 97&lt;br /&gt;?- M is 41,get0(M).&lt;br /&gt;: )&lt;br /&gt;M = 41&lt;br /&gt;?- M=dog,get0(M).&lt;br /&gt;: )&lt;br /&gt;No&lt;br /&gt;?- get(X).&lt;br /&gt;: Z&lt;br /&gt;X = 90&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;5.6 Using Characters: Examples&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Contohpertama menunjukan bagaimana cara karakter dari keyboard. Variabel&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;kemudiandisatukan dengan nilai ASCII karakter ini. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Contoh :&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;readin:-get0(X),process(X).&lt;br /&gt;process(42).&lt;br /&gt;process(X):-X=\=42,write(X),nl,readin.&lt;br /&gt;?- readin.&lt;br /&gt;: Prolog Example*&lt;br /&gt;80&lt;br /&gt;114&lt;br /&gt;111&lt;br /&gt;108&lt;br /&gt;111&lt;br /&gt;103&lt;br /&gt;32&lt;br /&gt;69&lt;br /&gt;120&lt;br /&gt;97&lt;br /&gt;109&lt;br /&gt;112&lt;br /&gt;108&lt;br /&gt;101&lt;br /&gt;yes&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 150%;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Kaliini ASCII nilai-nilai input adalah karakter yang tidak output, tetapi jumlahkarakter&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 150%;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;(termasuk*) adalah output.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 150%;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;go(Total):-count(0,Total).&lt;br /&gt;count(Oldcount,Result):-&lt;br /&gt;get0(X),process(X,Oldcount,Result).&lt;br /&gt;process(42,Oldcount,Oldcount).&lt;br /&gt;process(X,Oldcount,Result):-&lt;br /&gt;X=\=42,New is Oldcount+1,count(New,Result).&lt;br /&gt;?- go(T).&lt;br /&gt;: The time has come the walrus said*&lt;br /&gt;T = 33&lt;br /&gt;?- go(T).&lt;br /&gt;: *&lt;br /&gt;T = 0&lt;br /&gt;&lt;span style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: white none repeat scroll 0% 0%;"&gt;Predikat vokal tes untuksalah satu dari 10 kemungkinan vokal (lima huruf besar dan lima huruf kecil),menggunakan nilai-nilai ASCII.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 150%;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;go(Vowels):-count(0,Vowels).&lt;br /&gt;count(Oldvowels,Totvowels):-&lt;br /&gt;get0(X),process(X,Oldvowels,Totvowels).&lt;br /&gt;process(42,Oldvowels,Oldvowels).&lt;br /&gt;process(X,Oldvowels,Totalvowels):-&lt;br /&gt;X=\=42,processChar(X,Oldvowels,New),&lt;br /&gt;count(New,Totalvowels).&lt;br /&gt;processChar(X,Oldvowels,New):-vowel(X),&lt;br /&gt;New is Oldvowels+1.&lt;br /&gt;processChar(X,Oldvowels,Oldvowels).&lt;br /&gt;vowel(65). /* A */&lt;br /&gt;vowel(69). /* E */&lt;br /&gt;vowel(73). /* I */&lt;br /&gt;vowel(79). /* O */&lt;br /&gt;vowel(85). /* U */&lt;br /&gt;vowel(97). /* a */&lt;br /&gt;vowel(101). /* e */&lt;br /&gt;vowel(105). /* i */&lt;br /&gt;vowel(111). /* o */&lt;br /&gt;vowel(117). /* u */&lt;br /&gt;?- go(Vowels).&lt;br /&gt;: In the beginning was the word*&lt;br /&gt;Vowels = 8&lt;br /&gt;?- go(Vowels).&lt;br /&gt;: pqrst*&lt;br /&gt;Vowels = 0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 150%;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;5.7 &lt;/span&gt;&lt;span style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: white none repeat scroll 0% 0%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Input dan OutputMenggunakan File&lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 150%;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Prologmelakukan input dan output dalam stream. Pengguna mungkin melakukan (membukadan menutup) di&amp;nbsp; stream denganmenggunakan huruf dari nama filenya .&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 150%;"&gt;&lt;span style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: white none repeat scroll 0% 0%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;File 5,8 Output:Mengubah Current Output Stream&lt;/span&gt;&lt;span style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: white none repeat scroll 0% 0%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;&lt;span title="The current output stream can be changed using the tell/1 predicate."&gt;Aliranarus output dapat diubah menggunakan tell / 1 predikat. &lt;/span&gt;&lt;span title="This value can be restored either by using the told/0 predicate or by tell(user)."&gt;Nilaiini dapat dikembalikan baik dengan menggunakan kata / 0 predikat atau dengankirim (pengguna).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: 150%;"&gt;&lt;span style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: white none repeat scroll 0% 0%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;&lt;span title="5.9 File Input: Changing the Current Input Stream"&gt;File 5,9 Input:Mengubah Input Current Stream&lt;/span&gt;&lt;br /&gt;&lt;span title="The current input stream can be changed using the see/1 predicate which representing a file name, eg"&gt;Inputstream yang aktif dapat diubah dengan menggunakan melihat / 1 predikat yangmewakili nama file, misalnya &lt;/span&gt;&lt;/span&gt;&lt;span title="see('myfile.txt')."&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;lihat ('myfile.txt'). &lt;/span&gt;&lt;span style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: white none repeat scroll 0% 0%;"&gt;&lt;span title="This value can be restored either by using the seen predicate or by see(user)."&gt;Nilaiini dapat dikembalikan baik dengan menggunakan dilihat predikat atau denganmelihat (pengguna).&lt;/span&gt;&lt;/span&gt;&lt;span style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: white none repeat scroll 0% 0%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;&lt;span title="1."&gt;1. &lt;/span&gt;&lt;/span&gt;&lt;span title="Reading from Files: End of File"&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Membaca dari File: End of File&lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;&lt;span style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: white none repeat scroll 0% 0%;"&gt;&lt;span title="If the end of file is encountered when evaluating the goal read(X), variable X will be bound to the atom end_of_file."&gt;Jikaakhir file ditemukan ketika mengevaluasi tujuan read (X), variabel X akanterikat pada atom end_of_file. &lt;/span&gt;&lt;span title="If the end of file is encountered while evaluating the goal get(X) or get0(X), variable X will be bound to a 'special' numerical value."&gt;Jikaakhir file ditemukan saat mengevaluasi tujuan mendapatkan (X) atau get0 (X),variabel X akan terikat kepada seorang 'khusus' nilai numerik.&lt;/span&gt;&lt;/span&gt;&lt;span style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: white none repeat scroll 0% 0%;"&gt;&lt;br /&gt;&lt;span title="2."&gt;2. &lt;/span&gt;&lt;/span&gt;&lt;span title="Reading from Files: End of Record"&gt;&lt;/span&gt;Membacadari File: End of Record&lt;br /&gt;&lt;span style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: white none repeat scroll 0% 0%;"&gt;&lt;span title="Typically the end of a line of input at the user's terminal will be indicated by the character with ASCII value 13."&gt;Biasanyaakhir baris dari input pada terminal pengguna akan ditunjukkan oleh karakterdengan nilai ASCII 13. &lt;/span&gt;&lt;span title="The end of a record in a file will generally be indicated by two ASCII values: 13 followed by 10."&gt;Akhirsebuah catatan dalam sebuah file pada umumnya akan ditandai dengan dua nilaiASCII: 13 diikuti oleh 10.&lt;/span&gt;&lt;/span&gt;&lt;span style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: white none repeat scroll 0% 0%;"&gt;&lt;br /&gt;&lt;span title="readline:-get0(X),process(X)."&gt;Readline:-get0(X), proses (X).&lt;/span&gt;&lt;br /&gt;&lt;span title="process(13)."&gt;proses (13).&lt;/span&gt;&lt;br /&gt;&lt;span title="process(X):-X=\=13,put(X),nl,readline."&gt;proses(X):-X = \ = 13, memakai (X), nl, Readline.&lt;/span&gt;&lt;br /&gt;&lt;span title="?- readline."&gt;? - Readline.&lt;/span&gt;&lt;br /&gt;&lt;span title=": Prolog test"&gt;: Prolog test&lt;/span&gt;&lt;br /&gt;&lt;span title="P"&gt;P&lt;/span&gt;&lt;br /&gt;&lt;span title="r"&gt;r&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span title="o"&gt;o&lt;/span&gt;&lt;br /&gt;&lt;span title="l"&gt;l&lt;/span&gt;&lt;br /&gt;&lt;span title="o"&gt;o&lt;/span&gt;&lt;br /&gt;&lt;span title="g"&gt;g&lt;/span&gt;&lt;br /&gt;&lt;span title="t"&gt;t&lt;/span&gt;&lt;br /&gt;&lt;span title="e"&gt;e&lt;/span&gt;&lt;br /&gt;&lt;span title="s"&gt;s&lt;/span&gt;&lt;br /&gt;&lt;span title="t"&gt;t&lt;/span&gt;&lt;br /&gt;&lt;span style="-moz-background-clip: border; -moz-background-inline-policy: continuous; -moz-background-origin: padding; background: white none repeat scroll 0% 0%;"&gt;&lt;span title="yes"&gt;ya&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1617215519972567180-1233470742016690622?l=algorithmproject.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://algorithmproject.blogspot.com/feeds/1233470742016690622/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://algorithmproject.blogspot.com/2009/11/resume-bab-5.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/1233470742016690622'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/1233470742016690622'/><link rel='alternate' type='text/html' href='http://algorithmproject.blogspot.com/2009/11/resume-bab-5.html' title='resume bab 5'/><author><name>algorithm</name><uri>http://www.blogger.com/profile/16978558516804510199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1617215519972567180.post-2617710268221557311</id><published>2009-11-24T06:32:00.000-08:00</published><updated>2009-12-09T14:56:16.521-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FP4'/><title type='text'>Expert System for Fixing the type of hair style and face shape glasses fit</title><content type='html'>&amp;nbsp;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 11" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 11" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5CMICROS%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C10%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;style&gt;&lt;!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal	{mso-style-parent:"";	margin:0in;	margin-bottom:.0001pt;	mso-pagination:widow-orphan;	font-size:12.0pt;	font-family:"Times New Roman";	mso-fareast-font-family:"Times New Roman";}p	{mso-margin-top-alt:auto;	margin-right:0in;	mso-margin-bottom-alt:auto;	margin-left:0in;	mso-pagination:widow-orphan;	font-size:12.0pt;	font-family:"Times New Roman";	mso-fareast-font-family:"Times New Roman";}@page Section1	{size:8.5in 11.0in;	margin:1.0in 1.25in 1.0in 1.25in;	mso-header-margin:.5in;	mso-footer-margin:.5in;	mso-paper-source:0;}div.Section1	{page:Section1;}--&gt;&lt;/style&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: blue;"&gt;Expert System for Fixing the type of hair styleand face shape glasses fit&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Background of problem are...&lt;br /&gt;&lt;br /&gt;most people are confused about hair style, when, they went to the salon they are confused what to do with their hair?, especially for women (for women haircuts model is like the crown that must always be on guard and in-patient) cut hair style must also comply with face shape...especially for those who wear glasses....for example on my group there is have oval faces (since covered so the haircut was not observed), he likely will use the lens frame or round box...Because of that, with this expert system, we hope people not difficult in deciding type of hair style and face shape glasses fitDetail Explanation of Idea.&lt;br /&gt;Expert System that we make consist of facts that is many kind of  face shape, hairstyle and glasses are suitable.&lt;br /&gt;&lt;br /&gt;We categories kind face shape's facts to many groups, such as :&lt;br /&gt;1 WAJAH OVAL ( bulat telur )&lt;br /&gt;2.WAJAH SQUARE ( kotak persegi / bujursangkar )&lt;br /&gt;3.WAJAH OBLONG ( lonjong )&lt;br /&gt;4.WAJAH TRIANGULAR ( segitiga )&lt;br /&gt;5. WAJAH ROUND ( bulat bundar )&lt;br /&gt;&lt;br /&gt;The possibilities of hair styles and models glasses suitable for their face shape :&lt;br /&gt;1. WAJAH OVAL ( bulat telur )      Hair styles are suitable: for your face all in balance or in balance (the perfect face shape) so whatever        haircut okay, from bald to short, medium, long and even no problems    ^^&lt;br /&gt;&amp;nbsp; &lt;br /&gt;Type of glasses that fit: shape eyeglasses frames and lenses matches anything except a round (circle).&lt;br /&gt;&lt;br /&gt;2.WAJAH SQUARE ( kotak persegi / bujursangkar )&lt;br /&gt;Hair styles that match: remember that your face is a box of hair on the edge of the head (the side of the   head) slightly curved piece of shaving to reduce the sharpness angle and soften the appearance.Can choose  models with short to medium curly variation   (curly), layer (curtain), or wavy (wavy).&lt;br /&gt;&lt;br /&gt;Type of glasses that fit: choose the form of frames and lenses are oval (ellipse) and for the frame (frame)      that does not matter a bit thick.&lt;br /&gt;&lt;br /&gt;3.WAJAH OBLONG ( lonjong )&lt;br /&gt;Hair styles are suitable: for your face-like oval impressed choose wide variations such as bangs hair (widen  laterally), layered hair (curtain), and curls (curling). Short and medium hair okay but not rising to the top       with the hair side of the third part ditipisi head. Do not choose long hair straight up over my neck, it can   make your face look longer and more narrow.&lt;br /&gt;&lt;br /&gt;Type of glasses that fit: choose frames and lenses tend to form a widened laterally box.&lt;br /&gt;&lt;br /&gt;4.  WAJAH TRIANGULAR ( segitiga )     You can choose layered hairstyle (curtain), side swept bangs, and shaggy. Type triangular face does not fit     with the military haircut (crew cut) and the mohawk&lt;br /&gt;&lt;br /&gt;Type of glasses that fit: choose frames and lenses that stretch to the top&lt;br /&gt;&lt;br /&gt;5. WAJAH ROUND ( bulat bundar )&lt;br /&gt;Hair styles that match: round face, including the width so choose hair styles tend to rise upward or     downward lengthwise (optional long hair). Demen alternative short hair can select the style spikes,      mohawk, and Bross&lt;br /&gt;&lt;br /&gt;Type of glasses that fit: choose frames and lenses are shaped and narrow box.&lt;br /&gt;&lt;br /&gt;Examples :&lt;br /&gt;- if "curls hairs"... "frame glasses is box"  ..,.. means oval face shape&lt;br /&gt;-  if "shaggy hairs"... "frames and lenses that stretch to the top" .... so WAJAH TRIANGULAR ( segitiga )&lt;br /&gt;&lt;br /&gt;BeneficialThe benefit that that can be gotten of this Expert System are :&lt;br /&gt;1. helping customers salon "hair cut" to make it easier to find the hair model&lt;br /&gt;2. help store glasses optical to choose their models frame&lt;br /&gt;3. help people to select the models of the hair in accordance with the shape of her face &lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1617215519972567180-2617710268221557311?l=algorithmproject.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://algorithmproject.blogspot.com/feeds/2617710268221557311/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://algorithmproject.blogspot.com/2009/11/expert-system-for-fixing-type-of-hair.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/2617710268221557311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/2617710268221557311'/><link rel='alternate' type='text/html' href='http://algorithmproject.blogspot.com/2009/11/expert-system-for-fixing-type-of-hair.html' title='Expert System for Fixing the type of hair style and face shape glasses fit'/><author><name>algorithm</name><uri>http://www.blogger.com/profile/16978558516804510199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1617215519972567180.post-5391525988539742811</id><published>2009-11-13T12:12:00.001-08:00</published><updated>2009-12-09T14:55:42.665-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FP4'/><title type='text'>4th task</title><content type='html'>Operators and Arithmetic &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Operator terdapat berebagai macam jenis&lt;br /&gt;&lt;br /&gt;Ada operator sisipan contoh predikat : john likes mary.&lt;br /&gt;&lt;br /&gt;Ada operator awalan contoh predikat : isa_dog fred.&lt;br /&gt;&lt;br /&gt;Ada operator akhiran contoh predikat : fred isa_dog.&lt;br /&gt;&lt;br /&gt;Ini jelas berbeda dari predikat yang sering digunakan yaitu : likes(john,mary).&lt;br /&gt;&lt;br /&gt;Terdapat keistimewaan dalam operator yaitu pengunaan op predikat contohnya : ?-op(150,xfy,likes).&lt;br /&gt;&lt;br /&gt;xfy menunjukan bahwa predikat merupakan operator sisipan,&lt;br /&gt;&lt;br /&gt;xf menunjukan bahwa predikat merupakan operator awalan,&lt;br /&gt;&lt;br /&gt;fy menunjukan bahwa predikat merupakan operator akhiran,&lt;br /&gt;&lt;br /&gt;(akan lebih jelas jika nanti dilihat di soal).&lt;br /&gt;&lt;br /&gt;Dalam prolog juga terdapat angka-angka yaitu didalam aritmatika tetapi di sini aritmatika yang terdapat di dalam prolog tidak dapat berdiri sendiri jadi harus terdapat keterangan(predikat lain yang mendukung).&lt;br /&gt;&lt;br /&gt;Sebagai contoh : ?-X is 6*Y+Z-3.2+P-Q/4. &lt;br /&gt;&lt;br /&gt;(prolog tidak dapat menjalankan ini karena prolog tidak mengetahui berapa itu Y,Z,P,dan Q)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;tetapi jika kita mengunakan ini :&lt;br /&gt;&lt;br /&gt;?- X is 10.5+4.7*2.&lt;br /&gt;&lt;br /&gt;X = 19.9 (maka prolog bisa menjalankannya)&lt;br /&gt;&lt;br /&gt;Berikut adalah table operator dalam aritmatika&lt;br /&gt;&lt;br /&gt;X+Y penjumlahan X and Y&lt;br /&gt;&lt;br /&gt;X-Y pengurangan X and Y&lt;br /&gt;&lt;br /&gt;X*Y perkalian X and Y&lt;br /&gt;&lt;br /&gt;X/Y pembagian X and Y&lt;br /&gt;&lt;br /&gt;X^Y X pangkat Y&lt;br /&gt;&lt;br /&gt;abs(X) nilai absolute X&lt;br /&gt;&lt;br /&gt;sin(X) sinus X &lt;br /&gt;&lt;br /&gt;cos(X) cosines X &lt;br /&gt;&lt;br /&gt;max(X,Y) nilai terbesar dari X dan Y&lt;br /&gt;&lt;br /&gt;sqrt(X) akar dari X&lt;br /&gt;&lt;br /&gt;Selain dari itu didalam prolog juga terdapat operasi relasi yaitu :&lt;br /&gt;&lt;br /&gt;=:= , =\= , &amp;gt; , &amp;gt;= , &amp;lt; , =&amp;lt; .&lt;br /&gt;&lt;br /&gt;Contoh operasi relasi :&lt;br /&gt;&lt;br /&gt;?- 88+15-3=:=110-5*2.&lt;br /&gt;&lt;br /&gt;Yes&lt;br /&gt;&lt;br /&gt;?- 100=\=99.&lt;br /&gt;&lt;br /&gt;yes&lt;br /&gt;&lt;br /&gt;jenis -jenis samadengan di dalam prolog yaitu :&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. Arithmetic Expression Equality =:= &lt;br /&gt;&lt;br /&gt;Contoh :&lt;br /&gt;&lt;br /&gt;?- 6+4=:=6*3-8.&lt;br /&gt;&lt;br /&gt;Yes&lt;br /&gt;&lt;br /&gt;2. Arithmetic Expression Inequality =\=&lt;br /&gt;&lt;br /&gt;Contoh :&lt;br /&gt;&lt;br /&gt;?- 10=\=8+3.&lt;br /&gt;&lt;br /&gt;yes&lt;br /&gt;&lt;br /&gt;3. Terms Identical ==&lt;br /&gt;&lt;br /&gt;Contoh :&lt;br /&gt;&lt;br /&gt;?- X is 10,pred1(X)==pred1(10).&lt;br /&gt;&lt;br /&gt;X = 10&lt;br /&gt;&lt;br /&gt;4. Terms Identical With Unification =&lt;br /&gt;&lt;br /&gt;Contoh : &lt;br /&gt;&lt;br /&gt;?- 6+X=6+3.&lt;br /&gt;&lt;br /&gt;X = 3&lt;br /&gt;&lt;br /&gt;5. Non-Unification Between Two Terms \=&lt;br /&gt;&lt;br /&gt;Contoh :&lt;br /&gt;&lt;br /&gt;?- 6+4\=3+7.&lt;br /&gt;&lt;br /&gt;Yes&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Logika Operator &lt;br /&gt;&lt;br /&gt;1. The not Operator&lt;br /&gt;&lt;br /&gt;Contoh : dog(fido).&lt;br /&gt;&lt;br /&gt;?- not dog(fido).&lt;br /&gt;&lt;br /&gt;no&lt;br /&gt;&lt;br /&gt;2. The Disjunction Operator&lt;br /&gt;&lt;br /&gt;Contoh : &lt;br /&gt;&lt;br /&gt;?- 6&amp;lt;3;7&amp;gt;&lt;br /&gt;&lt;br /&gt;yes&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1617215519972567180-5391525988539742811?l=algorithmproject.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://algorithmproject.blogspot.com/feeds/5391525988539742811/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://algorithmproject.blogspot.com/2009/11/4th-task_13.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/5391525988539742811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/5391525988539742811'/><link rel='alternate' type='text/html' href='http://algorithmproject.blogspot.com/2009/11/4th-task_13.html' title='4th task'/><author><name>algorithm</name><uri>http://www.blogger.com/profile/16978558516804510199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1617215519972567180.post-464047744213170210</id><published>2009-11-13T11:46:00.000-08:00</published><updated>2009-12-09T14:46:17.831-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='FP4'/><title type='text'>4th task</title><content type='html'>4th task finally coming..&lt;br /&gt;we are so tired this weel..-,-!!&lt;br /&gt;and here it is&amp;nbsp;question number one from task 4th :&lt;br /&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_jjAlaiolhoc/Sv20uhyaJCI/AAAAAAAAABM/QmBLXjdhW9s/s1600-h/Picture2.png" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" sr="true" src="http://4.bp.blogspot.com/_jjAlaiolhoc/Sv20uhyaJCI/AAAAAAAAABM/QmBLXjdhW9s/s320/Picture2.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;then we have to find animal that is large cat, small cat. large dog &amp;amp; small dog.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;firt we have to arrange the database . ex : dog (Fido),dog (rover),cat (marry), then type that on a enotepad and save it as 'pl&lt;/li&gt;&lt;li&gt;then consult it on prolog.. type the formulas, ex : large_dog(X).&lt;/li&gt;&lt;li&gt;then push enter and semi colon until "no " shows up!&lt;/li&gt;&lt;/ol&gt;&lt;blockquote dir="ltr" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; margin-right: 0px;"&gt;&lt;a href="http://4.bp.blogspot.com/_jjAlaiolhoc/Sv28zYUnyPI/AAAAAAAAACc/Ll0d0QMhXt8/s1600-h/1-5.jpg" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" sr="true" src="http://4.bp.blogspot.com/_jjAlaiolhoc/Sv28zYUnyPI/AAAAAAAAACc/Ll0d0QMhXt8/s320/1-5.jpg" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;blockquote dir="ltr" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; margin-right: 0px;"&gt;&lt;blockquote dir="ltr" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; margin-right: 0px;"&gt;&lt;blockquote dir="ltr" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; margin-right: 0px;"&gt;&lt;blockquote dir="ltr" style="margin-right: 0px;"&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;a href="http://1.bp.blogspot.com/_jjAlaiolhoc/Sv284J29esI/AAAAAAAAACk/2VPAgCVsWNQ/s1600-h/6-7.jpg" imageanchor="1" style="clear: right; cssfloat: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" sr="true" src="http://1.bp.blogspot.com/_jjAlaiolhoc/Sv284J29esI/AAAAAAAAACk/2VPAgCVsWNQ/s320/6-7.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;then task number&amp;nbsp;two,we have to make some condition with math operator (such as : average,square,product and larger than) and calculate it based on our algorithm..&lt;br /&gt;&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;the process are :&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_jjAlaiolhoc/Sv224eG5FeI/AAAAAAAAABU/mwGFHC27Q6Q/s1600-h/Picture3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" sr="true" src="http://2.bp.blogspot.com/_jjAlaiolhoc/Sv224eG5FeI/AAAAAAAAABU/mwGFHC27Q6Q/s320/Picture3.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;ol style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;li&gt;we made it directly on prolog&lt;/li&gt;&lt;li&gt;then inizialitation for integer X &amp;amp; Y&lt;/li&gt;&lt;li&gt;then type the formula beside the inizialitation of X &amp;amp; Y (divided by coma).&lt;/li&gt;&lt;li&gt;then&amp;nbsp;push enter&amp;nbsp;so the result must be gien gift..then push semi colon until "no" shows up..^^&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_jjAlaiolhoc/Sv25pofYGCI/AAAAAAAAABc/5zKiWMoL4lE/s1600-h/prolog+x,y.png" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" sr="true" src="http://2.bp.blogspot.com/_jjAlaiolhoc/Sv25pofYGCI/AAAAAAAAABc/5zKiWMoL4lE/s320/prolog+x,y.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1617215519972567180-464047744213170210?l=algorithmproject.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://algorithmproject.blogspot.com/feeds/464047744213170210/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://algorithmproject.blogspot.com/2009/11/4th-task.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/464047744213170210'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/464047744213170210'/><link rel='alternate' type='text/html' href='http://algorithmproject.blogspot.com/2009/11/4th-task.html' title='4th task'/><author><name>algorithm</name><uri>http://www.blogger.com/profile/16978558516804510199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_jjAlaiolhoc/Sv20uhyaJCI/AAAAAAAAABM/QmBLXjdhW9s/s72-c/Picture2.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1617215519972567180.post-3796565980991475348</id><published>2009-11-11T16:50:00.000-08:00</published><updated>2009-12-09T14:48:06.212-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='FP3'/><title type='text'>Expert System</title><content type='html'>&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 12" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5CAcer%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5CAcer%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData"&gt;&lt;/link&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5CAcer%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml" rel="colorSchemeMapping"&gt;&lt;/link&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt; &lt;w:WordDocument&gt;  &lt;w:View&gt;Normal&lt;/w:View&gt;  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;  &lt;w:TrackMoves/&gt;  &lt;w:TrackFormatting/&gt;  &lt;w:PunctuationKerning/&gt;  &lt;w:ValidateAgainstSchemas/&gt;  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;  &lt;w:DoNotPromoteQF/&gt;  &lt;w:LidThemeOther&gt;EN-US&lt;/w:LidThemeOther&gt;  &lt;w:LidThemeAsian&gt;X-NONE&lt;/w:LidThemeAsian&gt;  &lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;  &lt;w:Compatibility&gt;   &lt;w:BreakWrappedTables/&gt;   &lt;w:SnapToGridInCell/&gt;   &lt;w:WrapTextWithPunct/&gt;   &lt;w:UseAsianBreakRules/&gt;   &lt;w:DontGrowAutofit/&gt;   &lt;w:SplitPgBreakAndParaMark/&gt;   &lt;w:DontVertAlignCellWithSp/&gt;   &lt;w:DontBreakConstrainedForcedTables/&gt;   &lt;w:DontVertAlignInTxbx/&gt;   &lt;w:Word11KerningPairs/&gt;   &lt;w:CachedColBalance/&gt;  &lt;/w:Compatibility&gt;  &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;  &lt;m:mathPr&gt;   &lt;m:mathFont m:val="Cambria Math"/&gt;   &lt;m:brkBin m:val="before"/&gt;   &lt;m:brkBinSub m:val="&amp;#45;-"/&gt;   &lt;m:smallFrac m:val="off"/&gt;   &lt;m:dispDef/&gt;   &lt;m:lMargin m:val="0"/&gt;   &lt;m:rMargin m:val="0"/&gt;   &lt;m:defJc m:val="centerGroup"/&gt;   &lt;m:wrapIndent m:val="1440"/&gt;   &lt;m:intLim m:val="subSup"/&gt;   &lt;m:naryLim m:val="undOvr"/&gt;  &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt;&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt; &lt;w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"  DefSemiHidden="true" DefQFormat="false" DefPriority="99"  LatentStyleCount="267"&gt;  &lt;w:LsdException Locked="false" Priority="0" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Normal"/&gt;  &lt;w:LsdException Locked="false" Priority="9" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="heading 1"/&gt;  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/&gt;  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/&gt;  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/&gt;  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/&gt;  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/&gt;  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/&gt;  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/&gt;  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/&gt;  &lt;w:LsdException Locked="false" Priority="39" Name="toc 1"/&gt;  &lt;w:LsdException Locked="false" Priority="39" Name="toc 2"/&gt;  &lt;w:LsdException Locked="false" Priority="39" Name="toc 3"/&gt;  &lt;w:LsdException Locked="false" Priority="39" Name="toc 4"/&gt;  &lt;w:LsdException Locked="false" Priority="39" Name="toc 5"/&gt;  &lt;w:LsdException Locked="false" Priority="39" Name="toc 6"/&gt;  &lt;w:LsdException Locked="false" Priority="39" Name="toc 7"/&gt;  &lt;w:LsdException Locked="false" Priority="39" Name="toc 8"/&gt;  &lt;w:LsdException Locked="false" Priority="39" Name="toc 9"/&gt;  &lt;w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/&gt;  &lt;w:LsdException Locked="false" Priority="10" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Title"/&gt;  &lt;w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/&gt;  &lt;w:LsdException Locked="false" Priority="11" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/&gt;  &lt;w:LsdException Locked="false" Priority="22" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Strong"/&gt;  &lt;w:LsdException Locked="false" Priority="20" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/&gt;  &lt;w:LsdException Locked="false" Priority="59" SemiHidden="false"   UnhideWhenUsed="false" Name="Table Grid"/&gt;  &lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/&gt;  &lt;w:LsdException Locked="false" Priority="1" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/&gt;  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading"/&gt;  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List"/&gt;  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid"/&gt;  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1"/&gt;  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2"/&gt;  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1"/&gt;  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2"/&gt;  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1"/&gt;  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2"/&gt;  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3"/&gt;  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List"/&gt;  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading"/&gt;  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List"/&gt;  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid"/&gt;  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading Accent 1"/&gt;  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List Accent 1"/&gt;  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid Accent 1"/&gt;  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/&gt;  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/&gt;  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/&gt;  &lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/&gt;  &lt;w:LsdException Locked="false" Priority="34" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/&gt;  &lt;w:LsdException Locked="false" Priority="29" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Quote"/&gt;  &lt;w:LsdException Locked="false" Priority="30" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/&gt;  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/&gt;  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/&gt;  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/&gt;  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/&gt;  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List Accent 1"/&gt;  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/&gt;  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List Accent 1"/&gt;  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/&gt;  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading Accent 2"/&gt;  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List Accent 2"/&gt;  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid Accent 2"/&gt;  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/&gt;  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/&gt;  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/&gt;  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/&gt;  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/&gt;  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/&gt;  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/&gt;  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List Accent 2"/&gt;  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/&gt;  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List Accent 2"/&gt;  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/&gt;  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading Accent 3"/&gt;  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List Accent 3"/&gt;  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid Accent 3"/&gt;  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/&gt;  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/&gt;  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/&gt;  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/&gt;  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/&gt;  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/&gt;  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/&gt;  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List Accent 3"/&gt;  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/&gt;  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List Accent 3"/&gt;  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/&gt;  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading Accent 4"/&gt;  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List Accent 4"/&gt;  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid Accent 4"/&gt;  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/&gt;  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/&gt;  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/&gt;  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/&gt;  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/&gt;  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/&gt;  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/&gt;  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List Accent 4"/&gt;  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/&gt;  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List Accent 4"/&gt;  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/&gt;  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading Accent 5"/&gt;  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List Accent 5"/&gt;  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid Accent 5"/&gt;  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/&gt;  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/&gt;  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/&gt;  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/&gt;  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/&gt;  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/&gt;  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/&gt;  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List Accent 5"/&gt;  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/&gt;  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List Accent 5"/&gt;  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/&gt;  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading Accent 6"/&gt;  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List Accent 6"/&gt;  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid Accent 6"/&gt;  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/&gt;  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/&gt;  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/&gt;  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/&gt;  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/&gt;  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/&gt;  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/&gt;  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List Accent 6"/&gt;  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/&gt;  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List Accent 6"/&gt;  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/&gt;  &lt;w:LsdException Locked="false" Priority="19" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/&gt;  &lt;w:LsdException Locked="false" Priority="21" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/&gt;  &lt;w:LsdException Locked="false" Priority="31" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/&gt;  &lt;w:LsdException Locked="false" Priority="32" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/&gt;  &lt;w:LsdException Locked="false" Priority="33" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Book Title"/&gt;  &lt;w:LsdException Locked="false" Priority="37" Name="Bibliography"/&gt;  &lt;w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/&gt; &lt;/w:LatentStyles&gt;&lt;/xml&gt;&lt;![endif]--&gt;&lt;style&gt;&lt;!-- /* Font Definitions */ @font-face	{font-family:"Cambria Math";	panose-1:2 4 5 3 5 4 6 3 2 4;	mso-font-charset:0;	mso-generic-font-family:roman;	mso-font-pitch:variable;	mso-font-signature:-1610611985 1107304683 0 0 159 0;}@font-face	{font-family:Calibri;	panose-1:2 15 5 2 2 2 4 3 2 4;	mso-font-charset:0;	mso-generic-font-family:swiss;	mso-font-pitch:variable;	mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal	{mso-style-unhide:no;	mso-style-qformat:yes;	mso-style-parent:"";	margin-top:0cm;	margin-right:0cm;	margin-bottom:10.0pt;	margin-left:0cm;	line-height:115%;	mso-pagination:widow-orphan;	font-size:11.0pt;	font-family:"Calibri","sans-serif";	mso-ascii-font-family:Calibri;	mso-ascii-theme-font:minor-latin;	mso-fareast-font-family:Calibri;	mso-fareast-theme-font:minor-latin;	mso-hansi-font-family:Calibri;	mso-hansi-theme-font:minor-latin;	mso-bidi-font-family:"Times New Roman";	mso-bidi-theme-font:minor-bidi;}.MsoChpDefault	{mso-style-type:export-only;	mso-default-props:yes;	mso-ascii-font-family:Calibri;	mso-ascii-theme-font:minor-latin;	mso-fareast-font-family:Calibri;	mso-fareast-theme-font:minor-latin;	mso-hansi-font-family:Calibri;	mso-hansi-theme-font:minor-latin;	mso-bidi-font-family:"Times New Roman";	mso-bidi-theme-font:minor-bidi;}.MsoPapDefault	{mso-style-type:export-only;	margin-bottom:10.0pt;	line-height:115%;}@page Section1	{size:612.0pt 792.0pt;	margin:72.0pt 72.0pt 72.0pt 72.0pt;	mso-header-margin:35.4pt;	mso-footer-margin:35.4pt;	mso-paper-source:0;}div.Section1	{page:Section1;} /* List Definitions */ @list l0	{mso-list-id:114446750;	mso-list-template-ids:-1459091718;}@list l0:level1	{mso-level-number-format:bullet;	mso-level-text:;	mso-level-tab-stop:36.0pt;	mso-level-number-position:left;	text-indent:-18.0pt;	mso-ansi-font-size:10.0pt;	font-family:Symbol;}@list l1	{mso-list-id:532815935;	mso-list-template-ids:-1219578762;}@list l2	{mso-list-id:1318263897;	mso-list-template-ids:-320960976;}@list l3	{mso-list-id:1527717059;	mso-list-template-ids:577024176;}@list l3:level1	{mso-level-number-format:bullet;	mso-level-text:;	mso-level-tab-stop:36.0pt;	mso-level-number-position:left;	text-indent:-18.0pt;	mso-ansi-font-size:10.0pt;	font-family:Symbol;}ol	{margin-bottom:0cm;}ul	{margin-bottom:0cm;}--&gt; &lt;/style&gt;&lt;br /&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;An &lt;b&gt;expert system&lt;/b&gt; is &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;software&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; that attempts to providean answer to a problem, or clarify uncertainties where normally one or morehuman &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;experts&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; would need to beconsulted. Expert systems are most common in a specific &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;problem domain&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;, and is a traditionalapplication and/or subfield of &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;artificial intelligence&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;. 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 "&lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;knowledgebase&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;" which uses some &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;knowledge representation&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; formalism to capture the&lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;Subject Matter Expert&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;'s (SME) knowledge and 2)a process of gathering that knowledge from the SME and codifying it accordingto the formalism, which is called &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;knowledge engineering&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;. 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.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;Expert systems were introduced by &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;Edward Feigenbaum&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;, the first trulysuccessful form of AI software. The topic of expert systems has many points ofcontact with general &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;systems theory&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;, &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;operations research&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;, &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;business process reengineering&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; and various topics in &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;applied mathematics&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; and &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;management science&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 18pt;"&gt;Expert systems topics&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt;"&gt;Chaining&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;Two methods of reasoning when using &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;inference rules&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; are backward chainingand forward chaining.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;Forward chaining&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; starts with the dataavailable and uses the inference rules to conclude more data until a desired &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;goal&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; is reached. An &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;inference engine&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; using forward chainingsearches the inference rules until it finds one in which the &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;if clause&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; is known to be &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;true&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;. It then concludes thethen clause and adds this information to its &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;data&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;. 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.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;Backward chaining&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; 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 &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;rule base&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; contains&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;ol start="1" style="margin-top: 0cm;" type="1"&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;If Fritz is green then Fritz is a &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;frog&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;If Fritz is a frog then Fritz hops.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;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 "if" 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 &lt;b&gt;certainty factors&lt;/b&gt;. A human, when reasoning,does not always conclude things with 100% confidence: he might venture,"If Fritz is green, then he is probably a frog" (after all, he mightbe a &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;chameleon&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;). 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 &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;Bayesian&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; sense, in that they quantifyuncertainty.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt;"&gt;Expert system architecture&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;The following general points aboutexpert systems and their architecture have been illustrated.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 12pt;"&gt;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.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 12pt;"&gt;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.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 12pt;"&gt;3.&lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;Problem solving&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; 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 &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;philosophy&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;, 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 &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;procedures&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;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 "if then" 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.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;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 &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;personal computers&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;In some &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;applications&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; of expert systems, the nature of theapplication and the amount of stored information necessary to simulate the &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;human reasoningprocess&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; for that application is just too vast to store in theactive &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;memory&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; of a &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;computer&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;. 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.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;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.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;The &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;user interface&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; and the &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;procedure interface&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; are two importantfunctions in the &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;informationcollection process&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt;"&gt;End user&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;The end-user usually sees an expertsystem through an &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;interactive dialog&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;, an example of whichfollows:&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 12pt;"&gt;Q.Do you know which restaurant you want to go to?&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 12pt;"&gt;A.No&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 12pt;"&gt;Q.Is there any kind of food you would particularly like?&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 12pt;"&gt;A.No&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 12pt;"&gt;Q.Do you like spicy food?&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 12pt;"&gt;A.No&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 12pt;"&gt;Q.Do you usually drink wine with meals?&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 12pt;"&gt;A.Yes&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 12pt;"&gt;Q.When you drink wine, is it French wine?&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 12pt;"&gt;A.Yes&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;As can be seen from this &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;dialog&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;, the system is leadingthe user through a set of &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;questions&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;, 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 &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;control structure&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;. 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.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt;"&gt;Explanation system&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;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,"Why", as occurred in the above example. The answer is:&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 12pt;"&gt;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.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;It is very difficult to implement ageneral &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;explanation system&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; (answering questionslike "Why" and "How") 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 &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;knowledge structure&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;. It is a rule; a set of &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;antecedent conditions&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; which, if true, allowthe &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;assertion&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; of a &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;consequent&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;. The rule referencesvalues, and tests them against various &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;constraints&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; 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 &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;entity&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;. 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 &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;values&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; of some &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;attributes&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; with assertions that canbe made about other attributes. It is the orderly processing of these rulesthat dictates the dialog itself.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt;"&gt;Expert systems versus problem-solvingsystems&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;The principal distinction betweenexpert systems and traditional &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;problem solving&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; 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 &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;data structures&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; only; noproblem-specific information is encoded in the program structure. Thisorganization has several benefits.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;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's knowledge, such asstatements which relate information about the taxpayer to tax table choices. Itis this representation of the tax expert's knowledge that is difficult for thetax expert to understand or modify.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;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 &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;problem domain&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; (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 &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;user interaction&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;, programs to representand process special organizations of description, and programs to process the &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;declarations&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; that represent semanticrelationships within the problem domain and an &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;algorithm&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; to control theprocessing sequence and focus.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;The general &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;architecture&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; of an expert systeminvolves two principal components: a problem dependent set of &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;data declarations&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; called the knowledgebase or &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;rule base&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;, and a problemindependent (although highly data structure dependent) program which is calledthe &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;inference engine&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt;"&gt;Individuals involved with expertsystems&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;There are generally three individualshaving an interaction with expert systems. Primary among these is the &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;end-user&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;; 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 &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;problem domain expert&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; who builds and suppliesthe knowledge base providing the domain expertise, and a &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;knowledge engineer&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; who assists the expertsin determining the &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;representation&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; of their knowledge,enters this knowledge into an &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;explanation module&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; and who defines the &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;inference technique&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; required to obtainuseful problem solving activity. Usually, the &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;knowledge engineer&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; will represent theproblem solving activity in the form of rules which is referred to as a &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;rule-based&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; expert system. When these rules arecreated from the domain expertise, the knowledge base stores the rules of theexpert system.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt;"&gt;Inference rule&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;An understanding of the "&lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;inference rule&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;" concept isimportant to understand expert systems. An inference rule is a &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;statement&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; that has two parts, an &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;if clause&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; and a then clause. This rule is whatgives expert systems the ability to find solutions to diagnostic and &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;prescriptive&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; problems. An example ofan inference rule is:&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 12pt;"&gt;Ifthe restaurant choice includes French, and the occasion is romantic,&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;"&gt;&lt;span style="font-size: 12pt;"&gt;Thenthe restaurant choice is definitely &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;Paul Bocuse&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;An expert system'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 &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;reasoning&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; which more closelyresemble human reasoning.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;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 &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;expert&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;, it may be easier toretrieve this information from the expert.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt;"&gt;Procedure node interface&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;The function of the procedure nodeinterface is to receive information from the procedures coordinator and createthe appropriate &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;procedure call&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;. The ability to call a &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;procedure&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; and receive informationfrom that procedure can be viewed as simply a &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;generalization&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; of &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;input&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; 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.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;In the area of &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;machine diagnostics&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; using expert systems,particularly self-diagnostic applications, it is not possible to conclude thecurrent state of "health" 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.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;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.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;ol start="1" style="margin-top: 0cm;" type="1"&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;Classes—these are questions asked to the user.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;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.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;Procedures—these are definitions of calls to external     procedures.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;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.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;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.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;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 "yes" or "no" represented by numeric values 1 and 0or provide a value of between 0 and 1, represented by a "maybe."&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;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.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;A leaf that is an external nodeindicates that data will be used which was obtained from a procedure call.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;A reference node functions to refer toanother tree or subtree.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;A tree may also contain intermediate orminor nodes between the goal node and the leaf node. An intermediate node canrepresent &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;logical operations&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; like And or Or.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;The &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;inference logic&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; has two functions. Itselects a &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;tree&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; to trace and then ittraces that tree. Once a tree has been selected, that tree is traced,depth-first, left to right.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;The word "tracing" refers tothe action the system takes as it traverses the tree, asking classes(questions), calling procedures, and calculating confidences as it proceeds.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;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 "initial" 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 "initial" 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.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;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 &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;domain&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; of the expert systemmight vary considerably among the group of prospective users.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;One application where this isparticularly true involves the use of an expert system, operating in aself-diagnostic mode on a &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;personal computer&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; 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 &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;operator&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; 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'sunderstanding. For example, in diagnosing a personal computer, the expertsystem must know the major functional &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;components&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; of the system. It could ask theoperator, for instance, if the &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;display&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; is a &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;monochrome&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; 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 &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;test unit&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; 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 &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;knowledge engineer&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; 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 &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;accuracy&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; of the data supplied by theoperator is so low that the system could not effectively process it to ameaningful conclusion.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;In many situations the information isalready in the system, in a form of which permits the correct &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;answer&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; 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.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt;"&gt;User interface&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;The function of the user interface isto present questions and information to the user and supply the user'sresponses to the inference engine.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;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.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 18pt;"&gt;Application of expert systems&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;Expert systems are designed and createdto facilitate tasks in the fields of &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;accounting&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;, medicine, &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;process control&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;, &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;financial service&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;, &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;production&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;, &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;human resources&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; 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.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;A good example of application of expertsystems in banking area is &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;expert systems for mortgages&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;. Loan departments areinterested in expert systems for &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;mortgages&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; 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 &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;mortgage loan&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;, and appreciate that forthe acceptance of &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;mortgages&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; there are hard and fastrules which do not always exist with other types of loans.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;While expert systems have distinguishedthemselves in &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;AI&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; research in finding practicalapplication, their application has been limited. Expert systems are notoriouslynarrow in their domain of &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;knowledge&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;—as an amusing example, aresearcher used the "skin disease" expert system to diagnose hisrustbucket car as likely to have developed measles—and the systems were thusprone to making &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;errors&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; that &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;humans&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; would easily spot.Additionally, once some of the mystique had worn off, most &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;programmers&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; realized that simpleexpert systems were essentially just slightly more elaborate versions of the &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;decision logic&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; 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.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;An example, and a good demonstration ofthe limitations of, an expert system used by many people is the &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;Microsoft Windows&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;operating system&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;troubleshooting&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; software located in the"help" section in the &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;taskbar&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; 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.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;Another 1970s and 1980s application ofexpert systems — which we today would simply call &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;AI&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; — was in &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;computer games&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;. For example, thecomputer &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;baseball&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; games &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;Earl Weaver Baseball&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; and &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;Tony La Russa Baseball&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; 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 &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;Earl Weaver&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; or &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;Tony La Russa&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; 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"the game's AI provided the opposing manager's strategy."&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt;"&gt;Advantages and disadvantages&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;Advantages:&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;ul style="margin-top: 0cm;" type="disc"&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;Provides consistent answers for repetitive decisions,     processes and tasks&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;Holds and maintains significant levels of information&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;Encourages organizations to clarify the logic of their     decision-making&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;Always asks a question, that a human might forget to     ask&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;Can work continuously (no human needs)&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;Can be used by the user more frequently&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;A multi-user expert system can serve more users at a     time&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;Disadvantages:&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;ul style="margin-top: 0cm;" type="disc"&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;Lacks common sense needed in some decision making&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;Cannot respond creatively like a human expert would in     unusual circumstances&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;Domain experts not always able to explain their logic     and reasoning&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;Errors may occur in the knowledge base, and lead to     wrong decisions&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;Cannot adapt to changing environments, unless knowledge     base is changed&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 13.5pt;"&gt;Types of problems solved by expertsystems&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;Expert systems are most valuable toorganizations that have a high-level of &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;know-how&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; 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 &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;problem-solving&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; purposes.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;Typically, the problems to be solvedare of the sort that would normally be tackled by a medical or other &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;professional&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;. Real experts in theproblem domain (which will typically be very narrow, for instance"diagnosing skin conditions in human teenagers") are asked to provide"&lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;rules of thumb&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;" on how they evaluate theproblems, either explicitly with the aid of experienced &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;systems developers&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;, or sometimesimplicitly, by getting such experts to evaluate &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;test cases&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; and using computerprograms to examine the test data and (in a strictly limited manner) derive &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;rules&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; from that. Generally,expert systems are used for problems for which there is no single"correct" 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.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;Simple systems use simple true/false &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;logic&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; to evaluate data. Moresophisticated systems are capable of performing at least some &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;evaluation&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;, taking into accountreal-world uncertainties, using such methods as &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;fuzzy logic&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;. Such sophistication isdifficult to develop and still highly imperfect.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;span style="font-size: 18pt;"&gt;Expert Systems Shells or InferenceEngine&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt;"&gt;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 &lt;/span&gt;&lt;span&gt;&lt;span style="color: windowtext; font-size: 12pt; text-decoration: none;"&gt;eGanges&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt; which aims to remove theneed for a knowledge engineer.&lt;/span&gt;&lt;span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1617215519972567180-3796565980991475348?l=algorithmproject.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://algorithmproject.blogspot.com/feeds/3796565980991475348/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://algorithmproject.blogspot.com/2009/11/expert-system.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/3796565980991475348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/3796565980991475348'/><link rel='alternate' type='text/html' href='http://algorithmproject.blogspot.com/2009/11/expert-system.html' title='Expert System'/><author><name>algorithm</name><uri>http://www.blogger.com/profile/16978558516804510199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1617215519972567180.post-5257786203678174876</id><published>2009-10-22T00:31:00.000-07:00</published><updated>2009-12-09T14:47:14.135-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='FP2'/><title type='text'>2nd task</title><content type='html'>hi, everyone!&lt;br /&gt;we have another task for this week..&lt;br /&gt;first i will post my result..&lt;br /&gt;here it is the question:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_jjAlaiolhoc/Sv2u8bejL8I/AAAAAAAAAA8/K1oFE5mN-fM/s1600-h/Picture1.png" imageanchor="1" style="clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" sr="true" src="http://4.bp.blogspot.com/_jjAlaiolhoc/Sv2u8bejL8I/AAAAAAAAAA8/K1oFE5mN-fM/s400/Picture1.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;this is the result :&lt;br /&gt;&lt;br /&gt;1. from that database we have to find animal that is&amp;nbsp;: mammals,&amp;nbsp; mammals that is carnivora, stripes mammals and reptile that is mane&lt;br /&gt;..&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_jjAlaiolhoc/SuAACcTa8sI/AAAAAAAAAAM/YpE9CMjeICE/s1600-h/animal+prolog.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_jjAlaiolhoc/SuAACcTa8sI/AAAAAAAAAAM/YpE9CMjeICE/s400/animal+prolog.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_jjAlaiolhoc/SuADU9SlypI/AAAAAAAAAAU/IVqQSodYfI4/s1600-h/animal+prolog+2.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_jjAlaiolhoc/SuADU9SlypI/AAAAAAAAAAU/IVqQSodYfI4/s400/animal+prolog+2.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_jjAlaiolhoc/SuAFmyBGa8I/AAAAAAAAAAc/QdKSh9au0TQ/s1600-h/animal+prolog+3.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_jjAlaiolhoc/SuAFmyBGa8I/AAAAAAAAAAc/QdKSh9au0TQ/s400/animal+prolog+3.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_jjAlaiolhoc/SuAHttbLtuI/AAAAAAAAAAk/j9L1o7GljbI/s1600-h/animal+prolog+4.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_jjAlaiolhoc/SuAHttbLtuI/AAAAAAAAAAk/j9L1o7GljbI/s400/animal+prolog+4.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; first we have to put some formulas to find the animals catagories..&lt;br /&gt;and after we put the formulas prolog will help us found them..&lt;br /&gt;so..&lt;br /&gt;&lt;ol&gt;&lt;li&gt;first, you type the database on a notepad.&lt;/li&gt;&lt;li&gt;then you put this formula above the database :&lt;/li&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_jjAlaiolhoc/Sv2xIe8fl2I/AAAAAAAAABE/rwpMea2a5VE/s1600-h/Picture1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" sr="true" src="http://4.bp.blogspot.com/_jjAlaiolhoc/Sv2xIe8fl2I/AAAAAAAAABE/rwpMea2a5VE/s320/Picture1.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;li&gt;then save it as .pl&lt;/li&gt;&lt;li&gt;after that open prolog and consult the notepad (pl)&lt;/li&gt;&lt;li&gt;then type again the formula(one by one) on the number, ex number 1.mammals(B). then push enter &amp;amp; semicolon(;) until you see "no" with the next number.&lt;/li&gt;&lt;/ol&gt;2.couple&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_jjAlaiolhoc/SuAKA2lCGPI/AAAAAAAAAA0/v8bVXyyYlKE/s1600-h/couple2.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_jjAlaiolhoc/SuAKA2lCGPI/AAAAAAAAAA0/v8bVXyyYlKE/s400/couple2.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;for the couple, all procedure is the same..just try it! ^^&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1617215519972567180-5257786203678174876?l=algorithmproject.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://algorithmproject.blogspot.com/feeds/5257786203678174876/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://algorithmproject.blogspot.com/2009/10/2nd-task.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/5257786203678174876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/5257786203678174876'/><link rel='alternate' type='text/html' href='http://algorithmproject.blogspot.com/2009/10/2nd-task.html' title='2nd task'/><author><name>algorithm</name><uri>http://www.blogger.com/profile/16978558516804510199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_jjAlaiolhoc/Sv2u8bejL8I/AAAAAAAAAA8/K1oFE5mN-fM/s72-c/Picture1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1617215519972567180.post-5895127706511412913</id><published>2009-10-15T03:44:00.000-07:00</published><updated>2009-12-09T14:55:22.166-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='FP2'/><title type='text'>possible combimation of a set using prolog</title><content type='html'>this is the first task.."how to list a possible combination (consisting two elements) of a set in prolog.&lt;br /&gt;So we made that caused in prolog and here is the result :&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.mediafire.com/imageview.php?quickkey=zkmiwommogu&amp;amp;thumb=5" target="_blank"&gt;&lt;img alt="Unlimited Free Image and File Hosting at MediaFire" border="0" src="http://www.mediafire.com/imgbnc.php/2188445d0600b0fc906a9ea6bc77d6f74g.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;*hope this will be usefull!!^^*&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1617215519972567180-5895127706511412913?l=algorithmproject.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://algorithmproject.blogspot.com/feeds/5895127706511412913/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://algorithmproject.blogspot.com/2009/10/prolog-1.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/5895127706511412913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/5895127706511412913'/><link rel='alternate' type='text/html' href='http://algorithmproject.blogspot.com/2009/10/prolog-1.html' title='possible combimation of a set using prolog'/><author><name>algorithm</name><uri>http://www.blogger.com/profile/16978558516804510199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1617215519972567180.post-4272252439984937719</id><published>2009-10-13T21:25:00.000-07:00</published><updated>2009-10-13T21:25:41.707-07:00</updated><title type='text'>About Us..^^v</title><content type='html'>hi everyone!! this ou blog for discrete math final project..^^&lt;br /&gt;we're algorithm group and we're concists of 4 people..&lt;br /&gt;here they are :&lt;br /&gt;&lt;br /&gt;first one is Fazlurrani Izzattisselim, you can call her rani but some friends call her ntonk..^^&lt;br /&gt;She is the second child in her family. She was born in Jakarta on March 5th 1991. But she is living in surabaya now. She lives on &lt;i&gt;Pagesangan Baru III / 4&lt;/i&gt; in the south of Surabaya. Her hobbies are surfing on internet, watch movie, and reading manga.&lt;br /&gt;You can contact her at :&lt;br /&gt;email : ntonk.akanishi@yahoo.com,&amp;nbsp;&lt;br /&gt;FB : Fazlurrani Rani Ntonk (user)&lt;br /&gt;blog : ntonk.livejournal.com&lt;br /&gt;&lt;br /&gt;second is Ridha Lamdha Ikhsanti..used to call by Ridha&lt;br /&gt;She is come from Mojokerto but she was born in Kediri on November 2nd 1991. Now she is living in a dorm on &lt;i&gt;Gebang Wetan 31B &lt;/i&gt;which is nearby ITS. Her hobbies are watching dorama and anime, reading manga, and listening music. She is a playfull person.^^&lt;br /&gt;You can contact her at:&lt;br /&gt;email : WLamdha@gmail.com&lt;br /&gt;FB : WLamdha@gmail.com&lt;br /&gt;&lt;br /&gt;third is Arrizqy Nur Shabrina.. She is come from Pamekasan. Pamekasan aslo the place that seh was born. She was born on July 30th 1991. Now she is living in a dorm on &lt;i&gt;Keputih Perintis IV / 14&lt;/i&gt;. In a spare time ahe likes to watching television, playing Facebook, and send message with her friends.&lt;br /&gt;You contact her at :&lt;br /&gt;email : Anarrizqy@gmail.com&lt;br /&gt;FB : Anarrizqy@gmail.com&lt;br /&gt;&lt;br /&gt;the last person and the only male in our group.&lt;br /&gt;He is Salman Al Farisi, you can jim by Salman. He was born in Pamekasan on March 14th 1991. Now he is living in a dorm nearby ITS..&lt;br /&gt;his hobby is playing music. You can contact him at his email : salman_pet3cy_dream@yahoo.com&lt;br /&gt;&lt;br /&gt;that's all our group's member..we hope our final project blog is usefull for others..&lt;br /&gt;&lt;br /&gt;best wishes&lt;br /&gt;Algorithm Project's team&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1617215519972567180-4272252439984937719?l=algorithmproject.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://algorithmproject.blogspot.com/feeds/4272252439984937719/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://algorithmproject.blogspot.com/2009/10/about-usv.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/4272252439984937719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1617215519972567180/posts/default/4272252439984937719'/><link rel='alternate' type='text/html' href='http://algorithmproject.blogspot.com/2009/10/about-usv.html' title='About Us..^^v'/><author><name>algorithm</name><uri>http://www.blogger.com/profile/16978558516804510199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
