A
Model
of the
Acquisition
ond
Improvement
of
l)onrin
trfuowledge
for
Functional
Programning
CLAUS MÖBUS, OLAF SOTRÖDE& AND
IIEINZJÜRGEN
TIIOLE
Depünnent
oJcdi?rbtlonal
Sct?,,,d€, P,O.BE
2503 UnivercltyofOldenburg,
D-2900 Ollerrbtrg,
Gemüy
Repdnted
fron
J@tt
ul dArdlcial
Intellignce
in
fuhtution
(te92)
3<4),
44e476
Jl.
otAttificial lnte
igen@ in Education
(1994 3(41,445-476
449
A
Model
of
the
Acquisition
and
Improvement
of
l)omain
Knowledge
for
Functional
Programming
CLAUS MÖBUS, OLAF
SCIRÖDE&
AND
IßN.IZ.ÜRGEN THOLE
Deparhnent
ofconputatio
al
Sclence, P.O. B.tx 2503 Universiry ofOldenburg,
D-2900Oldenb rg,
cemany
This peper describ€s a lxodel
of
stud€nts tnowledge growth fromrcvici
to expertwithina theoretioal fmmewo* of inp6ss€-&iven l€aming,success{ri\€r
lelmin&
and Foblem solvine. Ih€ model represeds the achral state of donainknowledg€ ofa leam6. It is designed tobepartofa h€lp systen,ABSYNT,
väich
pmvides user-oedered h€lp in the domainoffmctiolal
prog'--i"g.
Ille
noCrelis continuously updat€d bas€n or the l€amer's
progmming
actions. There is adistinctior withtu the model b€tween newly acquir€d and irnlmy€d knowledge.
Ndly
acquienbnvledas
is reg€sented byaügnotirs
lhe model withßles
ftomlheexp€rtknowledgebase.
Ktro
edgeimyolana'/isr€pEsentedtyn
ecrnpositior
Ir
thisw.y,
lhe knowledee contain€din
the Dodelis
partiallyordeEd frosr 8erc.al
nl€s
to nore specific schems for solutior ftagm€ixtsto
srßcilic caies (= elianple solutiols for speoifio pro8r"mning ta!ks). TIrcnod€l
is
inpl€m€nted butmt
yet aourally us€d for help genention within th€ h€lp ststem. This paper descaibes the theoreticslfiuel0*,
the ABSYNT helpsyst€m, the nodel, a prelininary study addressing sone
ofits
€inpirical pr€dic-tions, and the sienificance ofthe nodel for the help system.lntroduction
The problem
ofstudent
modelling is an important research topic especiallywithin the
cootexl
ofhelp
andtutoring
sy6ten6(Atrd€rso4
Boyle,Farrell,
& Reiset
1987;Broirn
&
ButoD,
1982; Frassotr&
Gaulhier,
1990;K€arsley,
1988;Sleetna4 1984; Sleenan
&
Brora,
1982; Wetrger, 1987). Advance in designing such systems 6€ems to be possibl€only
ifthe
actual knowledge stateoflhe
leamer can be diagnos€d orrrTei!
an efricient andvalid
way. This
is
diffcult
(SeH, 1990,1991)but
&cessary
fo!
a
systemin
order
to
rcact
adequatelyto the studenl's activities. Furthermore, it has beenw€ll re.ogoized
tiatprogess
in
studentmodelling
depends much onundeßtandhg
what th€ stud€nt is doing andwhy.
Thusdetailed
assumplions about probemsolvür&
knowledge repres€ntation, a.ndacquisi-tion
processe6 are&eded.
We fac€
the
studetrtmodelling
Foblem within
the coDtextofa
help
systemin
thedomain
offunctioaal
prograrDming:lhe ABSYNT
Prölem
SolvitrgMonitor. ABSYNT
("Abstract
Sy8tax
lre€s")
is
a
firnctional
visual programming
la-nguage desigBedto
support beginners
acquiring
basic
trnctional plogrammiag
coDcepts.The ABSYNT
Problem Solving
Monitor
provides helpfo!
the studentconstuctiDg ABSYNT
programsto
dven tasks.ldapltv€
help requiles a stualeotmodel Oür
approach to model the student's knowledge rests on thr€eprirciples:
450
C.
Möbus,
O.
Schrödor, and
H-J. Tholo
.
Totry
to understand what the student is doingandwhy
This
amounts to consFuctitrga
theorcticol lrantewotk
]|tliich ispo*€rfirl
enough to describe thecoltrnuous
streamof
hnothelical
problem 6oli'in8,
knowledgeacqursiton,
andutiüzalron
evenls,ard to
d€scribe and explaitr th€
stread
ofobd€rvable actions and verbalizationsoflhe
student..
To
use aslbset
oftlns
theoretical ftamework
itr
orderto
construct a studentmodel
coDtaining the actual
h)'lothetical
6lateofdomaia
knowledge of the student. Thisrtate
model must be (and can be) simpler than lhe
tieoretical
ftamelvork becauseitsjob is
enicient onllfie Aagnosis
ofdo
ain
knowledgeba*ed on the computer_assessable alalaFovided
by the studenl's interactiotrswith
the st6tem..
Tofill
the gap bctween the lheotetrcal ftarnework and the stale model bycon6üucling
atr
ofline
model
of howledge
acquisitioD, knowledgemodification'
and problem
solung
prccesses. Thi6Procatr
nrdel Fovit€s
hlpothetical
r€asors for lhechangirg
knowledge states as reprcs€ntEdin
the staleoodel.
ln
accordancewith
the6oprinciples,
we pur$re athrce-lercl
apptoach:.
Ath€ore[cal
ftameworkofFobleE
solving al}d learning s€w€s as abas€ fo!intetpreting
ad
understadirgtle
student's actrons aodvetbalizations. WecalllhisfradeworklSP_
D,
?reoly
Gnlpalse - quccess - Prcblem -Solving
-Drivetr
tearning
Theory).
.
Ar inter
al nodet(M
dia€Bos€s theactal
önain
knowl€dge of the leartrer atditr€rent
states
inlhe
knowledge acquisitio[ procesr (rtate nodst). It is designed to h€ aa integrate-dport of the help
Eßten C'iDfemal"
toit)
h
ordel to provideurer€tered
fee-dback.
A^extemal
nodet
(E
I)
is d€signed tosim
ate the L'nowl€dge acquisfioDP/ocessetof
leamers on a level
ofdetail
oot available to theIM
(e.9., includingwöalizations).
Thüs,tfte EM is not part
ofthe
help syslemC'extemal"
to it) but süpportsfte
de'sigBofttre
IM.
Thus
ISP-DL
Theory,Ilt4
andEM
aredesi$ed
to b€mutually
consrstentbut
s€.vediflerent
purposes.This
paper is concertredwith
tle
IM. It
is organized asfollows:
Ftst,
wewil
descdbe theISP-DL
Theory atrd oür help sy61em, theABSYNT probleEFsolving
monitor.
Then,
tle
IM
is
describedand
iIüstrated. Empiricäl
predictioDsatrd a
first
evaluation arc presented. Fina.lly, w€
wi[
show how theIM
enabl€s adaplive help.The ISP-DL Knowledge
Acquisition
Theory
The ISP-DL Theory is istetrded to describe
tie
cotrtinuous flowofprobtem
solving atrdleaming
of the student asit
occursin
a sequence of,for
example,ptogranming
sessions.In our
uew,
existing
appoaches touch upoo main aspectsofthrs
process but do not cover alloftheo.
Conse4uentb, the ISP-DL Theory is atr attempt to iDtegrate s€veral approaches.Before describing
it,
we 1sillbriefly
discuss lbre€theorctlcal
approachesreleva
here:(l)
ItrVanl-ehn's
( 1988, 1990, 1991b) theory oflmpasseDriven Leaming,
the conceptof
an impasse is
ofcentml
impotta$ce to ths acquisitiotrofnew knowledge
Rouglily,an
impasse i6 a sitüation where"the
architecture cannot d€cidevhat
to do next glvetrthe
koowledg€ and
tle
situatio!
tlal
are its cuirent focusofatteltion"
(Vanl-ehq
l99lb,
A
Model of
tho Acquisition
and
lmprovemont
of
Domain
Knowledge
451Impasses are also situations where the learner is
likely
toaciii€ly
look for aad to accspt,elp (Vanleh4
1988).ButFoblem
solving ortrying
to understatd rem€dialinfo.ma-tion
might
aswell
leadto
secondary impasses(Brown
&
Vanl-eh4 f980).
ImpasseDrivenl-€amingTh€ory
is concsrned about conditions for problem solving, usingh€lp,
and thereby acquiring Dewklowledge.
It is not conc€med eboutoptimizing
knowl€dg€ aLeadyacquired. "Knowledge compilation . .
.
is not thekind
of leamiag tbat
thetheory describe6"
(Vanlahq
f988, p. 32).
Thus,rrith
respectto our
purpose6, the theory seerns incomplete.(2)
Io
SOAR(Laird,
RosenblootrL& Newe[,
1986, 1987; Ros€nbloom, Latud, N€wBll,&
Mccarl
l99l),
the conceptofimpass€{dvetr
leaining
is elaborat€d bydifrerent ttTes
ofimpasses and we3k
heüistics peformed
in
response to them. lmpasse6Figger the
creation of6ubgoals aad heuristrc search itr conesponding problem spaces.
Ifa
solution
is
foünd,
a chunkis
cregted acting as a new operatoritr
theoriginal
Foblem
sp6ce.As
in
ImpasseDrivetr l,€arning
Theory,all
leaming
is tdggercd by impass€s.But
iq
oü
view
it
seemr questionable whetherall
ktrowl€dgoacquisitioo
events caDreason-ably be described as resulting
ftom
impasses(Vanlebn,
1991b).In
SOAR there is no"success-driv€n"
chargeofknowledge
6layingwilhin
ore problem spac€(i.e.,
astlrc
rcsult
of the successftl application oferirtirg
howledge).
(3)
ACT*
(Anderson"
1983, 1986, 1989) foc-uses on thesuccess{riven optimization
of
already
existing
knowledge by lmowledgecompilatiotr
but pay6 lessattentioa
to the problem where new linolvledge cornesftom.
We
think
thal for olüpurpo6es it isnecessrylo
coverprobled
solving,impasse{riv€n
leaming
andsucc€ssddven leaming
aswell
(seealso
Schöder,
1990).Thus, ISP-DL
Theory iDcorpomtes
.
thedistinction
of
diferent
problem-solving
phares(accordilrg to
Gofwitzer,
1990):De
liberuting
wilü
t\e
ß^*tlt ofchoosing
a goal,p,ldrrirg
a solution toit,
aeallirg
the
plan,
andevataatt g
the result..
t\e
inpasse-drivenacq
isition
ofnew knovledge. In ßsponse to impasses, theproblem
solv€r
appliesweak heurislics,
lik€
asking
questions,looking for help, €tc.(Lair4
Rosenbloom,
&Newell,
1987;Vanl,€h&
1988, 1990,l99lb).
Thus, n€wknowledge maybe acquired.
.
t\e
tuccess-driven improvementofacqabed
knowledge.Succesdily
usedknowl€dg€
is
i4ptoved
soit
carr be used more efrectively.Morc
q@ifrc''lly,W
mle
composilion
(Andeßon,
1983, 1986; Lewis,1987;Neves&Anderson,
1981; Vere, l9??),thenumber
ofconlrol
decisionsard
subgoals to be set is &duc€d. Iooul
approach,composi[on is
based on the resolution 6od u.trfolding method(Hogger,
1990).We describe th€
ISP-DL
Theory byhiercrchical
higherPetfi
nets(Htbe\
Jense\
&
Sbapiro, 1990), though altemative modelling fonnalisms alle possible, for e/.ample,
slreal
cosmunication
(Gr€gory,
1987).Petri
net6 showtempoml consüaints
otrthe order
of
pKrc€ssing step6
morc clearly than
apurely verbal
presentation.Thus they
emphasizeempirical
predictions. The whole prcce6s is divided into 4 recursive subproc€sses(pdger):
El
cßl
iöiüiüöär'i
>salu!o-!!---i
452
C. Möbus,
o. sch
ider,
and
H-J. Thole
"Operational
GoalProcessing"
(Figues l-4).
Praces(circleyellipses)
r€piesent states (e.g., the cotrtent ofdala memories);farstott
(r€ctangeo rEpres€nt events or process stepsOperational Goal Proc€ssing
::.$9-l-{U.o.,ü...
j
A
Modelofthe
Ac4uisilion and lmprovoment
of
Domain
Knowledge
453
.
fl_1cesyJ
contal
lokens
wbich
represent menral objectstgoals. memory
traces,ueun{rcs!
etc.)
orreal
objeqs
(e.9.. asolution or
a behaviourpdocol).
places can beDrarked E4tX lags
(/,
for
enleri Dg.Orr
for exifug
place,F6
for gtobalfilsioo
set).Atl FG
tagged place
is
coDrmoo üo several nets (e.g., the_X_nowleUge ti'ase;.fraositioÄ
canti
taggedwith HI (for
hierarchical invocation
tra$itiotr). This
meatrsthat
üe
pmcessis
continuedin
the calledsubrcL
The dotted boxes show.lictr
places areconeio'o.ainn
J
the
calling
net andin
the cajled net. Shadedtransjdo*
aodpia"o
"r.
hf;;
;1;;ät
by the
IM
(see below).Problem Solviog is srarted
inthepage..
ptobten
proce.sstrs. .(Fisüe
I ). The Droblem
solr€r(PS)$rivesforonegoaltochoos€oulofthe6aotgoals::-aehierare.:.;;;;;
be viewed as a ser of facts aboul lhe environment whictr
tli
p.ottem
sotver,ranrü UäÄä
true
(Newe[,
1982).Agoalcanbe
e\Tressed asapl€
dic;tive
desc
pnon
which
istobe
achieved by a
prölem
solutioD.Forexample.
rhetoal
o
creare ap.ogram,"nicn
ress
Ua
tralüral trunber
isel€o, "even(n) ',
catr be expressed by thedescripion:
"irnct
e.ven-
(nat n) bool: exisrs ((natk)
2r
k
=n),'.
.
.Thegoai
is processedin
tß
page..Coat
prccessirg'.
(Figure 2).lf
the pS comesup
withasolutiotr üe
lJsed know ledge is optimized: dedrlcri*
t"ri"t"agi
opti.iron
oo.\Ihei
the PS eocoünte$ asimilar
problem,tle
solution timewitt
Uestortä. nre
net is teftwnei
th€rc are no tokensin "Go als," ,,Goat,"
and,. Solxtions-',
,Inlhepage
GoalProcesssing'(Figure2).thepsche.kwhetherhissetofproblem
solr,T og opemtors is
suffcient
for
asolution:
..operationat?
.,/,'nonaperat
ionali.,
-
An
operational goal is process€d according totle
page,,Operatinal Goal
process-/rg''
Gigure
3 ). Apla!
isslnthesizedby
ar{lllingproblem
solvitrg operators, ori t is created by
analoeical-rcasonlng.
Theplan
is apanialy
ordereds4ueoce
oi nierarcty
of domain_specific
prcbleff-solvjng
operatoß
(or of
domain_uDspecificheurisdcs:
seebelow;. tn
either case, the
plan
is er€crrted.Exerution might
na.o.iat"
n
.tl",
pf- ."fn"."ril
.o
arros/s lead also backfion
'.execule"
to
r.plarl..
Exe,cuLion leads to a oroUtemsolvinp
p/o/ocol
wbich
is used itr combinatioowitll
the knowteOgetase
roeuotrrre
tte
ourcomeiThe
rcsult of
theevaluatio,
genemles an impasse or a success and istransfer€d
t ack to tbe
page
"CoaI tuocessing."
The
/sdcto,
of1le
PSto
sltccess is: lea.']e,,Goalprccessing"
wil\
asotltion..fl\e
r€€ction to an impasse is the cre3tion ofsubgoals to use weak beuristics for Droblemsolvins
Now lbere is a r€cursive
call
to'
problem processitrg. ..
. .Coatprocesins.
,and
,:On"ä
tional
Coal Processitrg'
a-re called again.Thjs
time:wiüitr
Operationalöot
pro;;G
aplan
10 useheüisticr
ts strthesized
and executed.(Simpli
examplesfor
theseweai
heudslics are to use a dictioDary, ro fitrd atr expen !o
consull
and so on.)A menory
Eaceof
üe
situation whic h led toüe
impasse is kept.If
the use of heuristics is successfui, then Ihe resuh istwofold:
.
Tle
heurisrically
baaedsolution to
the impass€is
relatedto
tle
memory traceof
rhe impassesituation.
Thus.wirhitr ..Coal
processing,.,
^ew
donain_speiitrc
proAten-solving
operators areinductively
adqdle4
.
\lit\in
"Ploblen
processing,',
üe
domain-
nspecfc
heuristic
knowledge u6edis
deütci'iaely
optinized.
Sone{
time the pS encountersa!
impasse, he or shewil
b€ more454
C
Möbus,
O
Schöder, and H-J' Thole
Finally,
arcD-operatiooal
goal is p.ocessedaccordlngtolhep gg"Non4perational
Goal
Processing"
(Figrc
4). The
problem
is
d€compo€€dand th€
subsolutions arecompos€d to a
final
solution.
it
is possibteard
necessary to refine the theory'stransitions
and places' butfor
our
purposetlis
rheory issrfrcient.
Impottant
are thefollowing theorctically
andempiricaly
valldated statements:
.
New knowledge
is
acquired
or
y
al
impassesafter
suc@ssfrrlapplication
of weat
heuristics.
.Idormaliooishelpfulonlyatimpa66esandifslnchronizedwiththelnowledgestateof
üe
PS.V,lhat design
pinciptes
doestle
ISP-DL
Theoryimply for
theABSYNT
help systemand
for the
In;mal
M;del (IM)
which
is
intendedto
represeottle
PS's actualdomain
knowledge?
Concemhg
thehelp
s$tem
(l)
ft
should notinterupt
th€ learnet butorb
infofinatron
üponrc4rest.
(2)
There shonld be attra C',rrue aILdeasil! 6eable
neans ofewluation fot
all
ptoblefir
solviDg phases.(3,
Differcnt probten-solving
Phas.s-E'nthasizing (plandng),
ex€cuting(implement-ing),
andevaluating-should
be supponed.(4)
Informalioo
shoutd b e user-cenlercit,tlt
lis,
cbsely lailored to lheloowledge
stateof
tie
leamer. The leam€r should be able to oseFe_loowl€dge
as much as possible'Concemi
g
theIrnenal
Model
(l)
It
should disringuish tf,nw(f.;nnewtt
acquired kacn/{k;dge$d
improvedk\o'ttlej'ge,
where knowledge can oaly be imprcved after successfulapplication
(2)
Its content should rcfl @tpetfonifunce
data snshas spe€dupsftom eadierto latertasks'
asking
for
or
actively looking
for
help,
and
corections
or
r€desiSnof
solütiotr
proposals.
(3)
It
should r€presentboth planningkaovltrrdgeaudtmple entation/
coilingtßtrowledge'The ABSYNT Problem
Solving Monitor
ABSYNT
is a vislralprograrunhg
language based on ideas statedin
anint$duclory
computer science textbook (Bauer
&
Goos, 1982).It
is a treeßpresentation
ofpure
LISP
without
the list datastucture
and is aimed atsupporti4
the acquisition ofbasicirnctional
pmgrammhg skills, includiog abslßction
and r€cüsrve
syslems.The motivation
ald
änalyds
U ASSYNI
*ith
resp€ct topropqties ofYisual
lalguages is dsscribeditr
Möbusand Thole (1989). The
ABSYNT
Problem SolvingMonitor proides
^n
progam-A
Modolofthe
Acquisition snd lmprcvement
of
Domain
Knowledge
45S
ming eny
ionfient
(Ch,.ttg, 1990). Its main componedts are avisual editor,trace, and a
relp
componenli
^ hypotheses testing
environnent.
.
Intheeditor
(Figure 5), ABSYNTprogramscanbeconstructeal.Ther€isahead window
and a bodywindow
Thelet
pan
ofFigue
5 shossth"
toolba
ofth"
edit*
i;;;;;k;t
is
for deleting
üodes andlints.
The hand isfor
movirg,
thep*
fo,
*;;;,
";
rdi;;
for
cotrnecling
nodes.Next
thereis
a conslant, parameter;and
..higüer;;
self_alefided operatornde
(to be named by theleam6.,
using the pentool). Consünt
aadparametei
noales are the /eave,r
ofABSyNT
tlees. Then severalprirnitive
operator noaesfoliow
1..ii,
,,1.1
':'1"'",
:?
P.!ng
is done by s€lecring node.*tn
d..o*.
-a
pi""ioj
tlern
rn Lhe wrndows and
b)
Iitrking,
moving, Daming, or deleting them. Nodes and Iinlsiaa
becreated inrtependen
!:
II
alink
is creared before the to_be_litrked nodes areedited,
t he n shadows ar€ automatically crealed at thelitrk
ends. They,"*"
*
pf""" tofa"r,
f--iroa""
to b€ edit€d
later.
Shado\xs rnay also be createal bycli"ting irto
"
Ä."."gi*
oi"
*i"Aü.
In
Figure 5, aprogam
is aclüa.lly under developmetrr by a studetrt.Tle;
are subtre€s
not
yet linked-and nodes trot yet Damed or completely unspecified (shaded areas). The upperp;
oMgure
5 sbows the Sran window for call itrgprografls. Tlus
is also where t_hevimal
tracestans
if
s€lected by th€ student. In the visüal tmce, eachcornpuational
step is martevisibie
by representing computation goals and results wirtrin tt
"
ood", qraoU,
A 3.n
oA"a
ioiöl.
Figure
6.
A
snapshotoftlrc
visual editorofABSyNT
l^
t&
hypothesestestng envircnnent
(Figtre
6t,
rJe pS may state h]?othesesOold
paflsoflhe progam
in lhe upper worksheetin
Figure 6) abourtheiorreAneis
ofprograms
or parts I hereof for
gr€o
progammi
ngusks.
The hlTothesisis:
..lt
ispossibleio
embed theboldly
markedfragnent
of the progmmin
acorecl
sotutiotr to thec;r€ot
taskl . , ThePS then selects the curreol task
fiom
a metrq andtte
sySem anal;zes the hypothesis.lf
rhe-
ntsltnt
rram;
at;;i
ffiü4,
@etr
456
C. Möbus' O. Sohröder,8nd H-J. Thole
hlpothesis can be
confrmed,
the PS isshowllacopy
oftte
h)'pothesislfthis
infttmation
is
;ot
suficieDt
to resolve th€ impass€, the PS may askfor
moreinformatron (compl€tron
proposals).
If
thehpothesis
cannot beconfirmed
the PS receives the messagetlat
the
hFothesis
cannol becodpleled
to a solutiotr knowD by the systernffiü4"
\
tJ
TJ
€@e
t! tr
t3
@cc
G@@
FFNF
A
Modelofthe
Acquisition and lmprovement
of
Domain
Knowledge
457The
upperpatt
of Figü.e 6
showsa solution
profosal to the
..even"
problcm
just
construct€dhya
studenl "
Con6truct aprogram that determines rvhether a number iswen!
"
This
solution
does nottelEinate for
odd arguments. Despitethat,
the,rprtlesis
Oold
program fragmentin
lhe upper partofFigure
6) i5 embedalable id a conect solutioD. Sothe
hFothesis
is return€d as feedback to the student(tbin pro$am
ftagmeü
in the middlepart
ofFigure
6). The student thenday
aslc for a completion proposal generated by thesyjem.
In the example the system completes the
hypotlesis
successivelywitl
the constant.itlue"
trdwitl ü9
"="-opentor
Oold prograE
fragmentsin the
middle
part of Figure
6).Internally,
thesysteh
generates a complete solutionvisible
it
thelon€r
pan
ofFigure
6.So the student's solution itr the upper part
ofFigüe
6
ay be conect€d by anitrter;hange
of program parts.One reason for the h,'?othe6es
testhg
approach is that itrprogrammin&
a bugüsually
cannot be
afuolutel!
localized,
andtjlerc
isa\atiet
of ways to debug awrong solution.
Hlpothes€stestingleav€s
thedecisionof\
hich pans ofa buggy solution proposal tokecp
to the PS and
tlereby
prcviales arich
data sourc€ about thepS
s knowledge state.SingG
subject session6
witi
the
ABSYNT
problem Solving
Monito!
revealedthat
hpotheses
testing was heavily
us€d.It
was almost tlre
ody
meansof
debugging
wrong
solution
proposals, despite the fact thaltle
subjects had also the visual trace availabl€.This
ispartly
due to th€ fact that
in
cootrast tolle
taace, h)?otlr€ses testing does not require a completeABSYI.IT prog.am solution.
The ans*€rs to the leamer's h,potheses are getrerated by rules
defining
aaoah-rr€arr-rclation
(GMR).
Thesenrles trlay
beviewcd
srs"pure"
exp€rt dornaitrknowledge
not
influenc€d by
learqing.
Thüs wewill
call this setofrules
EXPERTin
th€remainderoftlrc
paper.
Cunendy,
E)GBRT
contaios about 650 nrles and analyzes and synthesizes s€veralDillions
of solutions for 40 rasks(Möhrs,
1990,l99l;
Möbus& Thole,
1990). On€ofrhem
is the
"even"
taskjust
introduced; morc taskswill
be presented later. W€tünk
that sucha
large solution
spac€is
necessary becau6ew€
observedthat
espeaiallynovices often
construct unusual solutions öre to local rcpairs.
(Ttis
is exemplified by theclumsy-looking
studeft
proposalin
lle
upper panofFigure
6.)
With
respeclto
th€de,rig,
p/trcrples
meDtioned atthe
endof th€ las!
Eection. theABSYNT
ProblemSolving Motritor
does not iDternrpt butoJkrs
helpalld
hasattraqive
rlea\sof
etal
ation
lnotheses
testing, visualtnce).
Iacorporation ofaplrrrirg
levelir
in prcgess
(se€ alsot}e
discussion section).Concemiguser-centered
ielp,tfu
cornph-tiotrs
shownin
tle
middle part
ofFigure
6
(boldprogam
ftagments)
anal the compiete solulionitr
the lower part of Figure 6 were genemted by E)(PERT rules.EI@ERT
anatzes
and synthesizes
sotrtion
propos:rls but is not addptiye totie
leamer,s knowledge.Usüally
EXPERT
is able to g€nerate a large setofporst6/e
co!0pletionr. Thus the mainirnction
of
th€ 1M
(interoal
student model) i,6 10 rer€ct a completionfiom this
setwhich
ismaximallv
corsirterl
wrth
theleamer's
curreDt kno\+ledge stale, aod thus to provideu..r.*t"r.ä
help.The
IM
contains simpleclv{Rnd€s
and compositesofthen
It is continuously upalatealaccording to
theorctical
aadempirical
constraiüts. Therefore,GMR
nrles,rule
composi-tio4
andempirical
conshaintswill
be described beforeplesenting
theIM.
GMR
Rules
.
This seclion describ€s theMs-m€€ns-relation
CMR
The set of GMR rutes may besplit
C.
Möbus,
o.
Schöder, and H-J. Thole
.
There arc threekhds
of simPte rulesigoal
elabontion
rules'
rulesimple
entlng oneABSYNT
node
(opetüot,
parameter,or
constant),a
d
rules
inPlementinEprograrn
.
Co
positerules
aß$@ldby
merging at least two sucaessrven
€sparsinga
soluion
Composites may be produöed
from
simple nrles and composilesA
composite iscalled
a .sclr;tn a
if it
contains at leastoß
pair ofvadables which
can be bound to a goal treeand a corresponding
ABSYNT
progam
subtlee, rc6pectively.If
a compo6iteis
trlly
instantiafed ai.e., its variables catr only be bound to
lod€
namesol
noale values),then
it
is called acdte.
Co
cf,r
ilil
tlLedato
baseof
theGMR
nrles,EIGERT
contains th€ expertdomain
knowledg€
(only
simple nrles). The setsIM
and POSSwi
be describedbelow'
F4ure7
showsoomplesfor simplelules
depict€dintheiivisual repres€
ations
Eachrüehas
arate
head(l&had
ride,
pointed 10 by thearrow)
ald
arate
,odl
(right
hand side, wherct[e
ar:row ispoialrng fiom).
The nrle headconlainsa$oalf"means-pair
wherc
the goal iscontahed
in lhe€llipre
ad
the means (implementationofthe
goaD iscontained
in
tie
r€ctangl€. The rule bodycontahs
one goals_means-psir or a conjunctionofpairs,
or
a
primitiv€
predicate(isiarm,
is-const).
Figure
7,
Agoal
elaboralionrule
(E1)anda
rule(Ol)
imple
enting theABSYNT
node "if-theo-€lse"
Tlrc
first
nrle ofFigue
7,El,
is a goal elaborationrule
lt
caa be read:lf
tule
headri
your main goal
is
"absditf'with
lwo
subgoals
Sl
and S2'
then
ioave
space
lor a
program
tree
yet
to
be
implemented, and (rrle
Dody):lf
in
the next planning
step you create
the
new
goal "branching" with the
three subgoals
"loss-than
(sl,
S2)," "dlfference (s2, S1),"
and'diffo.ence
(s'i
'
s2)"'
then
the
program
lree solving thls
new
goalwlll
also
bethe solution
forthe
main goal"
ol^
/1r
rrtr.r,t
pu\ |
pt P:
p:l
A
Model
ofthe
Acquisition
and
lmprovement ofDomain
Knowledge
459
Ol
in Figure 7 is a simple ruleiDpl€mnting
theABSYNT
'.if-thendse"
opemtormde:
tf
then
if
thon
if
then
it
thon
tule
hod):
your msin goal is "brsnching"
witi
thrce subgoats
(tF,
THEN, ELSE),
imphment
an"il-tien-elso"-node
(or ,,if-,'-node) with
three links leaving
frcm itsinput, €nd leave space
abov€
these
links
for three program
tre;s
Pl,
P2,
P3
yot to
be
implomented; and
(ru/e
rody):
in
the next planning slep
you pursue
the goal lF,
its
solutlon
P1
will also
be at P1 in
the solution
of
the main goal,
and
in the noxt planning siep you
pursue
the goal THEN,
its solution
P2
will also
be
al
P2 in
the solution
oflhe
main goat, and
in
the nexl planning
step
you pu6ue the goal
ELSE,
iis solution
P3will
also be
at
P3 in
the solution
oftho
main qoal.
Composltion of
Rules
In oul
theory, composit€s represent improved s?ed-upktowledge.
Simple rules and compositesconstitute
a partial
order
ftom
simple
rules (..micro
rules") to
solution
schemala to specific cases r€presenting solution examples for tasks. In this section wewill
defi ne rule composition.If
we view th€ rules as Hortr clauses(Kowalski, l9?9),
then the composit€ RIJ oftwo
rules RJ and RJ can b€ described by the inferenc€
rule:
RI:
(F
- P &
C)
R:(P'
*
A)
RU:
(F
* A &
C)o
The
hno
clauses abovethe
line
resolveto
the
resolventbelow
tle
line.
A-
C
erecotrjutrction6
ofatomic
formuias. P. P,, and F areatomic
formu]as,o
is the most generalunifis
ofP
and P'. RIJ is thelesult
ofunfolding
RI andRI-a
round operation (Hogger,1990).
For example, w€ can compose the
scletna
C? (Figure 8) outoftie
setofsimple
les{Or, 05,
Ll,
L2},
where:Ol
:gmr(branching(IF,THEN,ELSE),if-pop(p1,p2,p3)):-gm(lF,P1),gmrGHEN,P2),gm(ELSE,p3).
05: gmr(equal(S1,S2), eq-pop(P1,P2)):-
gm(St,pl),gm(S2,p2).
L1
:
gmr(parm(P),
P-pl)i
is_parm(p).
L2: gmr(const(C), C-cl):- is_const(C).
C7:gm(branching(equat(parm(Y),consl(C)),parm(X),ELSE),
is_parm00,is
where:
if-pop
eq-pop
P-pl,
X-pl,
Y.pl
C-cl
if-pop(eq-pop(Y-pl,C-cl),X-pl,p))i
_const(C),is_parm(X),gm(ELSE,P).
=
primitive
ABSYNT
pperator "if-then-etse" (or,,if',)
=
primitive ABSYNT
Operator
"="
=
utrlamed ABSYNT
paramet€r leaves460
C.
Möbus,
O
Schröder' and
H-J
Thole
We also can desciibe the compositiotr of node
implementitrg
rülesR[
and RJ]vilh
a shorthandnotaloni
RJ
RIk
The index
k
alenotes the placek
in
the goal treeofthe
headofRl
Aplace
k
isthek-th variable
leafnrmbered ftom leftro
right
(e.g,
Ol3
= ELSE). The semadics of"'
"
canbe described
in
thrc€ steps.Fir6!
theluiable
itr place kin
the goal termin
the head ofRl
is substituted by the goal t€rm
ir
the headofRl
secon4
tle
call t€rm Pin
th€ bodyofRI
whicnconains
ttre tJ$e-snrbttrtutedvariable unifieswith
the head ofRJ and is rcplacedby
drc bodyofRt. Thir4
tle
unißer
d
is applied to the term rcsultitrgftom
the second step,leadingtothecomposediuleRU
Thu6, the variables afrected by theüification
in
steptwo
are replaced byüeir
biDdings.fi
e).anpte,Orz
.
lt
= gmroranching(IF,
pa.m(P),BLSE),
if-poper'P-pl,P3)):-grnr(IF,Pf),
isjarm(P),
gnr(ELSE, P3)
C? can be composedftom
therule
s€t{O1,
05,
Ll,
L2)
in
16different
ways.Two
possibilities are: C?= (O12.
Ll)l
.
((Os2.
L2rr.
Lt,
C7
=
(((olt . o5)s.
Ll)2.
L2)1.
Ll
Figure
E. The composite C7Empirical
Constraints of
Simple Rules, Chains, Schemata, and Cases
Rule6,
nrle
charnr,
anal schematagive
riseto
dmerent emplfical
prcilictions The
püpos€
ofthis
sectiol ir
tointoduce
h]?otheses aboüt the applicationofnovice
andexp€rt
inowledge,
viewert as simple GMR rules and composit€s. Som€oftlese
hypotheseswill
beused
in
theIdtemal Model.
Any
approach designed to representchangng
knowledge states mustrniror
theshift
trom
noviö
toexpert In geneßI,
oovices workreqr,ertidlJ,
set more subgoais, and ne€dmore control alecisions,
wlüle
exp€rts workinpdlallet,
set fewer subgoals, and needfewer
conüol de.isions
(Chase&
SinorL l9?3; Elio
&
Scharf, 1990; Gugerty&
Olsotr'
1986; Simon&
Sidon,
1978).Herg this
difrerence is reflected iD thepartial
order{iom simple
rules to schemata to specific cases.
C7 :Composie of rhe rules
Ol. 05.
Ll.3d
L2YC
V*mr
\L-!-l
c
X
I Iisl"iamerer
A
Modelofthe
Acquisition and lmprovomont of Domain
Knowledge
461 In order to alemomtrate thisdifrerencg it
is aecessary to speciry hypotheses aboutth€
problem-solvhg
behavior. According
10 theISP-DL Theory,
aplan is
E nthesizedftom
a goal, and executiotr ofoperators leads to a prctocol of actions atrd
verbalizations (Figure
3). Thus,
with rcEect
to theli€ory,
we make adistinction betweel
theproblem-rolving
phaßes&planninga\detecutioni
Aplat
synthesinrot
"plannet"
stnthesizesplht,aald
aA
opefotor
execüof
ot
"codef
"
executesolcrators
1oimplement
the plans.The
coder hasdornain-specific knowledge (GMR rules)
for
implementing
ABSYNT
treesbut
noplanning howledge. The
coder also
hasvery limited
execution knowledge: pattern
matchiDg
wiltout üification
(except
for
porartreterand
highe!
operatot
namesand
constänt values).More
complex processes arel€ft
to theplamer
whosejob is to grddethe
cod€r,
basedoa
domaiD-specific
plaming
knowledge
and on
w€ak h€uristrcs
(to
be specified by theExtqrnal Model,
a6 statedearlier).
For
illustration
ofa
hypotheticalinteraction
sequonce bctw€en plaßnet and coder, weassume
that
thegoal
"brarching
(e4ral (parm(y),
co$t(o)),
parn(x),
ELSE)"
is
to beimpl€meded
andtiat
the coder hasknor
ledge about the setof simple GMR
iules
{Ol,
05,
Lf,
L2).
Figure
9 shor s how theintenctiotr
miglt
prcc€ed:At
time
t0, theplann€r
deiivers
tle
goal. The coder hasrc
rule forit,
so he rejects the goal. So the planner chopsthe goal into subgoals. Next, he
maypresentt!€
subgoal''parm(y)
"
to the coder. Th€ coder now has a rule, LI,
instaltiates it
toLl',
and editsall ABSYNT
parameter nodewith
tie
name
''y".
Next, th€planrcr
deliveG the subgoal"parm(x)
".
Theplafiler
us€sLl
again,
leadingto
theinstantiatiotrLl", ald prcgams
aparameter x- Thentle
planner comes upwilh
"const(o)".
The coder usesL2,
applyiBgL2'
atrdprogütnming
a constant node 0. Next, the subgoal"equal(S
l, 52)"
isgivel
Theplalner
instantiates05
to05'
and creates a''="
nodewith
two openlinks: their
upper enals ar€ shadows (placeholdeß for
nodes).After
time
!,
theplarrcr
tells
ti€
coderthat
''eqüal(SI,
52)"
has"parm(y)"
as itsfirst
subgoal. So the coderconnects the
first
ioput 1itrkofthe
''="
node to the parametery.Next,
theplanner
tells the coder ttrat ''equal(S l,S2)"
has"
const(o)"
as its second subgoal, sotle
coder connecta the secotrd itrputlink
ofthe
"="
node to the conslan! 0. Thus, the coder hasto
rearrange theposition of
tle
nodesand/or
theorie
.ationof
the
lioks. This
is
symbolized
by th€
hand
itr
Figure
9.
Next,
the
planner
comes
üp with
the
''branchitrg(IF,THEN,ELSE)"
subgoal. Thecoderimpleme
s it,instantiating OI
toOl'.
A.ier
time tm, the plan]ler tells the
coder
that
"brarching
(IF,THEN,ELSE)"
has"parm(x)"
asit!
second subgoal and"eqüal(Sl, S2)"
as itsfirst
subgoal. So the coderconnects the second and
first
iaput
lint
ofthe
"if-then-else''
node to the parameter x and10 the
"=
"
node, respectively.Agai.,
theposition
oflinkr
and/or rcdes on the screetr mayhar€
to be rearlatrged.Now
thegoal
is soh€d.Thüs,
tle
planner does nothow
abouttle
coder's ktrowledge, and viceveßa. There
is no
fixed
order of applicatioD of GMR rules. The order solely depends onhop
the goalsare delivered to the coder by the planner.
In
the example, the coder createdtle
sequenceof
n
einstantiations
(Ll',
Lf",
L2',
O5',Ol)
depetding
oD the goalsdelivercd
bythe
planftr.
In
contast
totiis
sequence,ifthe
samegoal
"bmnching
(equal(parm(y),
const(o)),parn(x), ELSE)"
is givetr andthecoderknows
the schenra C?,theothe iuteraction
showniß
FiBlIe l0 will
be produced.Again,
attime
t0 the plannerdeli\€rs
the goal.This
time
the coder inslantiates C? to C7' and implements the
ABSYNT
tree contained inC7'without
rcquiring
subgoals andlinking
ilstluctions
from
theplanner.
462
C.
Möbus,
O. Schröder,
and
H-J. Thole
Figure 9.
S$renceof inteüctions
b€tweenplanner and
coderwhile
solving the
goat"bnnchiag
(€eal
(parnn(y), cotrst(o)),porn(x), ELSE)"
with
the s€t{Ol,O',LI,L2],
of
simple rulesThe
planner
stream
this goal, he asks the
-gJ
l?\
t-
6
The
cod€r
str€am
'he
plrnn€r
slr€am
-
tr"The
coder
stream
--Gia,"""r
(
.'<al
ibrun.--hiisrliIFj
ffi
---\t'--\j*r-nffi;.\
0llhelrskis
II done
I6
The
coder
\=
str€am
at
ltk
A
Modelofthe
Acquisition and lmprovemenl
ofDomain
Knowledge
,163Figure
10,
Seque&eof
interactions between planner and codervhile
solving
thegoal
"branching
(equal(parm(y),
const(o)),parm(x), ELSE)" wilh
tle
scherna C7Ifwe
comparc thefirst
itrteraction(Figüe
9) wher€ the coder knows {OI,
05,
Ll,
L2}
with
th€ secondooe
(Figrüe
10) wheretlß
code! knows C7, we obsorvel.Inthefirstsequence,thecoderimplementsfiveprcgramfragmentscorespondingtothe
subgoals deliveredby the planner. In the second sequence, the coder
implementsjust
oneprogam
tre€ conespoading to the goal..
In
thefirBt
sequence, theplanner
givesexplicit infonnation
aboütlinking
program
fragments, and
tle
coder re3rrangesprognm
fragments accordingly, ifnecessary. Inthe
second sequence, lhere is no süchinformatioo.
In
order to enableenprr
calpredictions,
\rc
associate thefollowing empidcal claims
with
these observations:Implcrnentation
ofABSyIfi
ptogtu nftagmentt:
ßthe
coder applies a cerüah GMRrule,
then
exacdy
the
ABSYNI
program
ftagment
contained
in
it
is
implemented
h
anuninterrupted
sequenceofprc$amming
actionsoike positioning
anodg drawing
alint,
etc.). We do not postulate order conrüaints
vrrrr,
this sequence, but rre expect lhe sequencerct
to beintemDted
byprogmmning
actionsstemmiugftofr
dilferent
tüe
instartiations.
Vefializtlion of
gosls: Following
the theoretically motivateddistinction
of a planner anda coder, selecting goals and subgaals for implementation by the coder is an act
ofplanning
itrvolving
conhol decisions. So rs seemr reasonable thatat these decision poitrts,tle
selectedgoals may be
verbalized
(Ericsson&
Simon, 1984). The v€rbalizatioDs explain€d bythe
selection ofa certain CMR nrle may be intermixedwith
the nrle'sprog.amming
actionsbut
not
witl
rrcrbalizations and actionsstenming from different
ruleinstantiatiors.
Co
e.tion of
positions: Ythejusl impledented
programfiagm€nt
solves adangling
call
C.
Möbus,
O. Sohröder, and H-J. Thole
existing
ftagment
Now, correctir€ progiamming
actions arelikely:
lengthening
1inks, chr.ngingtheir
orienlatioq
andmoving
nodes.Ifwe
compare the applicationofa
single composite to drc applicationofa
setofsimple
rules
(like
C7
vs.
{Ol,
05,
Ll,
L2}),
theo
thefollowiog empirical
cons€qu€nces areassümed to result:
Inplzncntotü'n of ABSWT ptogamftagmenß Anvbn sn
ation hypothesb):
Fot
tlß
set of simple nrles, the o.der
of
rule applicatioDsis indeterminatg
but theprograrnming
actions described by eacft rule should be continuous . Actionsofdwrcnt
nlle instantiotions
should
not
inE
eave.
Id
contrast, when applyitrg
the
composite,tlere
are
no
order
coNtrainls
otr theprograoding
actio.s al all sitrcejust
otr€
le
is applied.Vefialisdon
ofgoals
(rerbalitation
hypothesi.:t):lltlle
examplqifthe
coder'slcnwledge
corlains
C7, the planner has to make one control decision.Ifthe
coalerknowsor
y{Ol,
05,
L
I,
L2l,
the planner bas to ,nake at least five conüol alecisions (alepending on how thegoal
is decompo6ed). Thus, we expecl that applying composiles iE accompanied
by/sleelgoal
vefializations
ftai
appling
conesponditrg set8 of simple rules.CoEe.lion
oJpositions
(teaüangenent
hypothesü)j ltr
ca6o of the composite, therc areno open
GMR
call6 to beimplemened,
atrd there arc no to-be-linkedpmgam
ftagments
lefl
byearlier
nrleapplicationr.
Thus, we expect thatapplying
composites 1ea&torvel
posltlon coftectlons
'MBSYNT
mdes atrd liDkstha!
applying theconeslondrng
setsof
simplo nrl€s.
Pe4onone
tine
(tine
hfpothesü):
Plaiaiag,
selecting, atrdverbalizing
goals,
and correcting positions of trodes andlink
areintemal
or external actions that are e\Tectedto
needtime(Rosetrbloom&Neweü,
1987). Thusrweexpectliatapplying
codlpositesislßle/
than applying the co.rEsponditrg sets of simple rules.
These predictions have not yetb€en iNestigated empfuically, except for
tl€
rnplemen-tatioD
hypothesis (seeb€low).
But both the
implementation
h)'?othe6isand
the
tim€
h]?othesis are used
in
theconst$ction
ofthe
Internal
Model to be describednow.
The
lntemal
Model (lM)
The
IM
is
a setof
domail
specific knowledge (simpleGMR
rules and composites)utilized
and continuously updated.As
staled earlier, theIM
covers the subset of theISP-DL
Theory shadedin
Figues
I
to 4. So b€fore alescribingit
in
detail, wewill
slctch
it
in
terns ofthe
ISP-DL
Theory.Concening Figare
1: The PS is facedwith
aprogranming
taskGoal)
and con6tructs a solution proposal(.rolrtior).
The solution is parsed,usilg
the knowledge bose(rslesint\e
IM and-as
far
asneedGd-in EXPERT).
Subsequendy, thenlesjust
used for parsing are o p t i mi ze dW
composilion.
Since these new composites may be bas€d on
E)GERT
nrl6s, they are not direcdy inserted into theIM: Accordirg
10 ISP-DL Theory, a Iule carody
be imp.oved aner it is successfullyA Modetofthe Acquisition and lmprovement
of
Domain
Knowtedg€
465
applied. This implies for the
IM
that it cannotat the same time be augmenledby a new simple.ule (from
E)GERT)
and by compositesbuilt
ftom
tle
same simpler|lle.
Forthis
reasoa,in addition
to theIM
there is a set POS,S ofpossible candialat€s for futurc compositesoftfte
IM.
Compositesofthe
rules used forparshg
a solution proposal are geneüt€d and kep!i[
POSS as candidates.Only
lhosesurviving
a later test are moved itrto theIM.
These rulesrepresent tlrc result of
"de
ductive kna.)ledgeoptinization,"
that is,imprceedk\o\tldge.
Conceming
Fig*e
2: If
parsing the solution js possible solelywith
ndesin
thetvt, tllen
the
IM
is
considered assufrcien!
!o constructthe
solutior\
and
"Goal
Prccessing" is
termljnated
("reaction to $ccess"). But
if
parsing
1le
solutiotr
requires additional
E)GERT
rules, then theIM
may be augmented by the6e (simpl€) rul€s, which represent ther€f,d1tof"inductiyeknoyledgeacquisilio
",th^tis,k:^o,üledgenela)l!acqtircilinrcsi.ponse
to impasles.
Coacemi
gFigure
3:
T'l\e pa$e tree represents the student'shlpothetical
solutioqplar,
vhich
execunonld
to ap/olrcol:
th€ sequence ofprogramming
actions,verbalizations,
and correctionsexlibited
byüe
student. We call that part ofüe
protocolconristing only
of
lhe
sludent's programming
actro.s
(creating
nodesand
links, naming
nodes) thesuüenl's action
sequence, Tae action sequence is us€d to evaluate the parsc rul€s:Since knowledge improvement shoüld resüIt
in sp&-ttp [f.'fotmu\@
(time
htpoth-e,tio, a composite is movEd ftomPOSS to
IM
onlyifthePs
showsaspeedlpfrom
anearlier
to a
later action seqßnce
whel6 both s€quences can be produced by the composite.The
IM
containsonly GMR
rul€s (simple rules and composites)which ploved
to beplarstble
witft
resp€ct to an action sequerce at least once. This is defined now.With
resp€ctto sorne action sequence,
GMR
rulesfonn
foul
subsets:(l)
Rules
not
containing any program fragments
("goal
elaboration
rules")
are,ordecisrv€ with
respect totl€
actron sequence. (Butveftalizations
can berclated
to the goal elaboralion
rules;
s€e Möbus&
Thole,
1990).(2)
Rules whose head contains a programftagment which
ispart
ofth€ final
result
produced by the action s€quence, and which wasprogramixledia anoninternlpted,
tempomlly
continuous subsequence (see theimprerrentation
hypothesisr. Thesenjl€s
areplausibk
wiü
rerpect to the action sequenc€.(3)
Rules al6o conl,aining a program Aagment whichi!
partofthe final
result of theacdon
sequ€nce,
but this
lragment corrcsponds
otrly
to
the
result
of
a,arco
iouons action subseAlueß,einterruptedby
other action steps. These rulesare
inplausible with
rcspeolo
the actiotr sequence.(4)
Rules whose head contains a prcgram fmgmenl which is not partofthe final rcsult
produced by the action sequence. Thes€ rules areizereyarl
to the action sequence.A c/edil
rewarals the usetrllressofth€
nies
in theIM.
It is the productoftlrc
lengthof
tle
action
sequence explained by therule
and the numberof
its succ€ssfi
appLications(ftequency
ofbeiog
plausible). Thlls, the credit depends on the empirical evidence gathered,l{r0
C.
Möbus,
O. Schrödor, and H-J. Thote
Durhg
the küowledge acquisitiotr process, thetM
isutilized
atrdco
inuouslyupalateal according to a proc€rsing cycle shown iDFigue
Il:
.
Srarr CIopofFigure
I I ): The fust programming task is present€d.Ioitially,
both setsIM
and POSS are empty.
.
Now the learner solves thefirst
task prcseoted.Thts,
an action sequenceis ptodttce,l,
leading to a
roirtio,
tolhe
task. The action sequence is saveditr
al€
file.
.
F
st f€sl.'
IM
and POSS are empty, so Dothitrg happens..
FrrulPaff€:
Thel€amel's ABSYNT
program solutioo to lhe achral task is parsedwitl
theEXPERT
rüles, l€ading to a 6etofparse
rules..
Fißt
Generate.TheE:trPERT
rulesjust
usedfor
pa$ing
are compared !o theaction
$qu€nce.
Theptrtßiüle
parseEXPERT
rules are putinio
theIM
and get credit.Ther
the coEposites
ofall
parsen
es are creat€d aIId comlDr€d to the action sequence.The
plausible
conposites
arekept
in
POSS. They are candidatesof improved
knowledge us€fidfor futule
task.
For
each plaujgible composite, thetime
neededby
thepS to
perform the
corresponding actioD sequenceis
attach€d.Now the Genente
phaseis
fnishe4
resultitrgin
an üpdated POSS andIM.
.
Now the next task is presented to the PS. ?he PS creales an A.BSYNT action sequenceard
solution toit.
IM empty.
mSS
emtryllurgis
aob^suuui
1. Each composir€ in POSS
- which isplausible in üe pr€senl
(üon
s€quence - which a.tual*e.u!ion
lihe
is shofler thai rhe is moved from POSS lolM
2. Each ifteievant composite
iskcprin
POSS 3. AII othercomposires in POSS are skipp€dL The plausible par-s€ EXPERT rules
are put
ino
IM ard ser crcdit2. The plausible composites
ofall
Dars€ rules arE Dur inro POSS.
Exeution rimei of
üe.ntr.mndino
Execution times of tlle con€sponding aclion seouences are atbched.
SolDtion is päßed
wi$
rules inIM
o.dered by credit and (as needed)
wilh other EXPERT
nles
Figu 1r
I
l . Th€uliliziag ard lpdating
cycl€ of theIM duriry
the ktrowledgeacquisition
prcces8A
Modelofthe
Acquisition and lmprovement of Domain
Knowledge
467.
Second Test: EaßhcofrWsite
in
POSS is check€dif
(a)
it
is plausiblewilh
respect to the acdon sequence, a-nd(b) the
time
needed by the PS 10 perform the res!€ctive continuous action sequ€nceis
shoter
than thetime
attached to the composite.This
meansthat
the PS p€rformsthe
aclion
relr$e/
than the previous corresponding action setwhich
led to thecr€tion
of
the composi&.The
compositesme€ting
these requir€montsare
put into
the
IM.
Compositesinelevant
10l[e
action r€quence ofthe solutioojust qeated areld
in POSS. Theymight
prov€
as uiefirl
compositesotr
future
lastr.
All
other
compositesviolate the
two
requircmenls. They are skipped; that is, they are composites implausible to the
actual
sequence, or composit€swhich pr€dict
a more speedy action sequence than observed.This
mean6 that the PS performs the action setrtolrer
than the previousconesFnding
action s€twhich led tothe creation ofttre composite. Thisslow-dowr
is inconsistentwitl
our mod€l asslmption that the PS prefers composites lo simple
nies;
thus, the composite is nottrandercd
to theIM
but skipped.Fitrally,
the credits ofa[
rulesitr
th€IM
which
are plausiblewith
rcsp€ct tothe
prcsent actrotr s€quence arc updated. Thus, the s€cond test l€ads to an updated POS S andIM.
..SscordParue:Nowthesolutionofthesecoidtaskisparsedwiththerüle6oftheIM
order€d by
tteir
cledits.
Asfar
as neede4E)PERT
rules arc also usedfor parsing.
.
Second Generate. Theplausibility
of E)(PERT
ruleswhich luve just
beenured
for
parsing is checked. The plausible EXPERT parse rules are agaitr put i0to the
IM
and getcrcdit.
Fürthermore, the compositedofall
actual paNe rules arc oeated. Theplalrsible
composites are put into POS S; theywill
be tested on the next tesl phase.Agai4
thetime
needed
for
tle
corresponding action seque&e is stor€dwith
each composite.With rcslectto
the designpri&iples
ftomISP-DL
Theoryforthe
IM mentionedearlier,
theIM
contains,rimplerules
(stemming fromE)OERT)
rcpresentrng newly acquiredbut
Dot
yet imprcved
knowledge, and comlrosires rcpresentingvarious
degreesof e.\petise.
EmpüCäl
perfomonce
dala such asspeedp
and the concept ofplau6ibility
are usedfor
updating
theIM.
Funhermore, the
IM
predicls order constrainls on action
sequences,verbalization, rearangement,
andtime. As
in
theABSYNT
ProblemSolving
Monilor,
p/drrrrg howledge
is not yet accounted for in the IM, but work is in progress.Finally,
,e/p
generation
will
be discussed below.An
lllustration
of
the
lM
Figüre
12 shows a continuous ftagm€nt of th€ action s€quence of a PS oD aprognm-ming
task. Again wewill
focus on the nrles Ol, 05,
LI,
L2, and C? (seeFigües
7 and 8).When
52 performs the sequence ofFigtre
12,01,
Ll
andL2
are alreadyin
theIM from
earlier
task. 05
is not yetiü
theIM
but onlyitr
the setofEXPERT
nrles. C7 has notyet
be€tr creatod,After
the subject has solved the task, theTerrPrrse
(Figure Il)
starts. Since theonly
composite we look at here (C?) har not been created, we only consider the