学科分类
/ 1
1 个结果
  • 简介:NondeterminismofPROLOGexecutionrequiresthatablockofcontrolinformationorachoicepointforeachprocedurecallbestoredwhenthereareothercandidateclausestobeused.Whenthecurrentlyselectedclausefails,thebindingsmadebytheclausemustbeundoneandthestoredchoicepointisreactivated,andthenanotherclauseofthecandidateonesischosentorunonit.StoringandreactivatingchoicepointsandundoingaccountforthegreatoverheadarerequiredtocontrolPROLOGexecution,whichisquitedifferentfromconventionalprograms.ThispaperfocusesonthetechniquesusedinSequentialPROLOGEngine(SPE)toreducetheoverheadofcontroloperations.ThecontrolinstructionsofSPEstorenomorechoicepointsthanthenecessary.Itsarchitecturetakestheapproachesofanalysingthepotentialparallelisminthecontroloperationsanddevelopingafractionofitduetothecost-effectconsideration.TheresultsofexecutingtwosampleprogramsonSPEintheformofhandtimingsarepresented,whichfavortheapproach.

  • 标签: PROLOG语言 逻辑程序设计语言 自动推理