Backward chaining

Backward chaining (or backward reasoning) is an inference method described colloquially as working backward from the goal. It is used in automated theorem provers, inference engines, proof assistants, and other artificial intelligence applications.[1]

In game theory, researchers apply it to (simpler) subgames to find a solution to the game, in a process called backward induction. In chess, it is called retrograde analysis, and it is used to generate table bases for chess endgames for computer chess.

Backward chaining is implemented in logic programming by SLD resolution. Both rules are based on the modus ponens inference rule. It is one of the two most commonly used methods of reasoning with inference rules and logical implications – the other is forward chaining. Backward chaining systems usually employ a depth-first search strategy, e.g. Prolog.[2]

Usage

Backward chaining starts with a list of goals (or a hypothesis) and works backwards from the consequent to the antecedent to see if any data supports any of these consequents.[3] An inference engine using backward chaining would search the inference rules until it finds one with a consequent (Then clause) that matches a desired goal. If the antecedent (If clause) of that rule is not known to be true, then it is added to the list of goals (for one's goal to be confirmed one must also provide data that confirms this new rule).

For example, suppose a new pet, Fritz, is delivered in an opaque box along with two facts about Fritz:

  • Fritz croaks
  • Fritz eats flies

The goal is to decide whether Fritz is green, based on a rule base containing the following four rules:

An Example of Backward Chaining.
An example of backward chaining
  1. If X croaks and X eats flies – Then X is a frog
  2. If X chirps and X sings – Then X is a canary
  3. If X is a frog – Then X is green
  4. If X is a canary – Then X is yellow

With backward reasoning, an inference engine can determine whether Fritz is green in four steps. To start, the query is phrased as a goal assertion that is to be proven: "Fritz is green".

1. Fritz is substituted for X in rule #3 to see if its consequent matches the goal, so rule #3 becomes:

 If Fritz is a frog – Then Fritz is green

Since the consequent matches the goal ("Fritz is green"), the rules engine now needs to see if the antecedent ("Fritz is a frog") can be proven. The antecedent, therefore, becomes the new goal:

 Fritz is a frog

2. Again substituting Fritz for X, rule #1 becomes:

 If Fritz croaks and Fritz eats flies – Then Fritz is a frog

Since the consequent matches the current goal ("Fritz is a frog"), the inference engine now needs to see if the antecedent ("Fritz croaks and eats flies") can be proven. The antecedent, therefore, becomes the new goal:

 Fritz croaks and Fritz eats flies

3. Since this goal is a conjunction of two statements, the inference engine breaks it into two sub-goals, both of which must be proven:

 Fritz croaks
 Fritz eats flies

4. To prove both of these sub-goals, the inference engine sees that both of these sub-goals were given as initial facts. Therefore, the conjunction is true:

 Fritz croaks and Fritz eats flies

therefore the antecedent of rule #1 is true and the consequent must be true:

 Fritz is a frog

therefore the antecedent of rule #3 is true and the consequent must be true:

 Fritz is green

This derivation, therefore, allows the inference engine to prove that Fritz is green. Rules #2 and #4 were not used.

Note that the goals always match the affirmed versions of the consequents of implications (and not the negated versions as in modus tollens) and even then, their antecedents are then considered as the new goals (and not the conclusions as in affirming the consequent), which ultimately must match known facts (usually defined as consequents whose antecedents are always true); thus, the inference rule used is modus ponens.

Because the list of goals determines which rules are selected and used, this method is called goal-driven, in contrast to data-driven forward-chaining inference. The backward chaining approach is often employed by expert systems.

Programming languages such as Prolog, Knowledge Machine and ECLiPSe support backward chaining within their inference engines.[4]

See also

References

  1. ^ Feigenbaum, Edward (1988). The Rise of the Expert Company. Times Books. p. 317. ISBN 0-8129-1731-6.
  2. ^ Michel Chein; Marie-Laure Mugnier (2009). Graph-based knowledge representation: computational foundations of conceptual graphs. Springer. p. 297. ISBN 978-1-84800-285-2.
  3. ^ Definition of backward chaining as a depth-first search method:
  4. ^ Languages that support backward chaining:

Sources

Read other articles:

قرية بلد فليم  - قرية -  تقسيم إداري البلد  اليمن المحافظة محافظة إب المديرية مديرية القفر العزلة عزلة بني مسلم السكان التعداد السكاني 2004 السكان 226   • الذكور 128   • الإناث 98   • عدد الأسر 30   • عدد المساكن 35 معلومات أخرى التوقيت توقيت اليمن (+3 غرينيتش) تعد

 

Railway station in North Yorkshire, England MartonGeneral informationLocationMarton, MiddlesbroughEnglandCoordinates54°32′40″N 1°11′55″W / 54.5443422°N 1.1985283°W / 54.5443422; -1.1985283Grid referenceNZ519168Owned byNetwork RailManaged byNorthern TrainsPlatforms1Tracks1Other informationStation codeMTOClassificationDfT category F2HistoryOriginal companyMiddlesbrough and Guisborough RailwayPre-groupingNorth Eastern RailwayPost-grouping London and North East...

 

Bài này viết về Trung tâm trao đổi thời đại Viking tại Thụy Điển. Đối với các định nghĩa khác, xem Birka (định hướng). Địa điểm khảo cổ trên đảo Björkö tại Thụy Điển BirkaThánh giá Ansgars tại BirkaVị trí tại Thụy ĐiểnVị tríEkerö, Thụy ĐiểnTọa độ59°20′10″B 17°32′43″Đ / 59,33611°B 17,54528°Đ / 59.33611; 17.54528Lịch sửThành lậpThế kỷ 8Bị bỏ...

Cargo ship that was converted into an auxiliary minelayer For other ships with the same name, see HMS Agamemnon and SS Agamemnon (1865). HMS Agamemnon moored at Kyle of Lochalsh History United Kingdom NameAgamemnon NamesakeAgamemnon OwnerOcean SS Co Ltd Operator 1929: A Holt & Co 1940: Royal Navy 1946: A Holt & Co Port of registry Liverpool BuilderWorkman, Clark & Co, Belfast Yard number503 Launched25 April 1929 CompletedSeptember 1929 Acquiredrequisitioned, 30 December 1939 Commi...

 

Canadian IPTV provider This article is about Bell Fibe TV services offered in major urban centres of Ontario and Quebec by Bell Canada. For Internet, see Bell Internet. For the communications company, see Bell Canada. For Fibe services offered by Bell Aliant in Atlantic Canada, see Fibe (Bell Aliant). This article contains content that is written like an advertisement. Please help improve it by removing promotional content and inappropriate external links, and by adding encyclopedic content w...

 

Hindu God, believed to be abstract form of Mahavishnu. For other uses, see Jagannath (disambiguation). JagannathaJagannatha idol in 2011AffiliationVaishnavism, Para BrahmanAbodeMount NilaMantraOm Jagannāthāya NamahWeaponSudarshana ChakraSymbolsPanchajanyaMountGarudaPersonal informationSiblingsBalabhadra and Subhadra Part of a series onVaishnavism Supreme deityMahavishnu Vishnu / Krishna / Rama Important deities Dashavatara Matsya Kurma Varaha Narasimha Vamana Parasurama Rama Balarama Krishn...

American medical drama television series For other television series with similar titles, see The Good Doctor. The Good DoctorGenreMedical dramaBased onGood Doctorby Park Jae-bumDeveloped byDavid ShoreStarring Freddie Highmore Nicholas Gonzalez Antonia Thomas Chuku Modu Beau Garrett Irene Keng Hill Harper Richard Schiff Tamlyn Tomita Fiona Gubelmann Will Yun Lee Christina Chang Paige Spara Jasika Nicole Bria Samoné Henderson Noah Galvin Osvaldo Benavides Brandon Larracuente ComposerDan Romer...

 

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (سبتمبر 2023) مسجد الداخلة التاريخيمعلومات عامةنوع المبنى مسجد المنطقة الإدارية منطقة الرياضالبلد  السعوديةالمدينة محافظة المجمعةأبرز الأحداثبداية التشييد ما بين 8...

 

عنتاتحاد عمان لكرة القدمالمسابقات المحلية دوري المحترفين العماني دوري الدرجة الأولى العماني كأس السلطان كأس النخبة العماني كأس السوبر العماني كأس الأمير العماني (سابق) المنتخبات الأول الأولمبي تحت 20 سنة تحت 17 سنة أندية الدوري العماني الدرجة الاولى 2010-2011م ظفار النصر العر...

Facade with front steps Santa Agata al Carcere (Saint Agatha at the Prison), sometimes called Santo Carcere or the Carcere church is a Roman Catholic church located on Piazza Santo Carcere #7, in the city of Catania, Sicily, southern Italy. It is one of three nearly adjacent churches venerating St Agatha of Sicily in this neighborhood, the other two being Sant'Agata alla Fornace and Sant'Agata la Vetere. History and description 15th-century Romanesque church portal Statue of St Agatha in the ...

 

Durrell Wildlife Conservation Trust Jersey ZooThe dodo is the symbol of the trust and the zoo. Statues of dodos stand at the zoo's gateways.49°13′46″N 2°04′24″W / 49.22949°N 2.07338°W / 49.22949; -2.07338Date opened26 March 1959 (1959-03-26)LocationTrinity, JerseyLand area32 acres (13 ha)[1]No. of animals1,400+[1]No. of species130+[2]Annual visitors169,000 (2009)[2]Websitewww.durrell.org/Wildlife-park Jers...

 

Un programa de televisión en vivo y cámaras Un programa de televisión es un conjunto de emisiones periódicas transmitidas por televisión, agrupadas bajo un título o cabecera común, en las que a modo de bloque se incluye la mayor parte de los contenidos audiovisuales que se ofrecen en una cadena. En el ámbito profesional, no son considerados programas los bloques de contenidos dedicados a las auto promociones, a la continuidad y a la publicidad convencional. Los programas sirven para e...

1969 film by James Ivory This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: The Guru 1969 film – news · newspapers · books · scholar · JSTOR (June 2012) (Learn how and when to remove this template message) The GuruTheatrical release posterDirected byJames IvoryWritten byRuth Prawer JhabvalaJames IvoryProdu...

 

2006 novel Echo Park First editionAuthorMichael ConnellyCountryUnited StatesLanguageEnglishSeriesHarry Bosch, #12Genrepolice procedural, crime fiction, mysteryPublisherLittle, Brown (USA), Orion (UK)Published in EnglishSeptember 2006 (USA), September 2007 (UK)Media typePrint (hardback & paperback)Pages446 pp.ISBN0-7528-6584-6 (UK), (USA)OCLC67374799Preceded byThe Lincoln Lawyer Followed byThe Overlook  Echo Park is the 17th novel by American crime-writer Mich...

 

The Austrian Jagdschloss Mürzsteg (Mürzsteg Hunting Lodge), where the agreement was signed. The Mürzsteg Agreement, signed 2 October 1903 at the Mürzsteg Hunting Lodge, was a joint memorandum of Russia and the Austro-Hungarian Empire transmitted to the Ottoman Empire, which proposed a series of political reforms in the vilayets of Thessaloniki, Kosovo and Monastir. The purpose of these reforms was to maintain the integrity of the Ottoman state, threatened by the Internal Macedonian Revolu...

Basketbol Süper Ligi 2021-2022Dettagli della competizioneSport Pallacanestro OrganizzatoreBasketbol Süper Ligi Federazione TBF Periodo25 settembre 2021 —13 giugno 2022 Squadre16 VerdettiCampione Fenerbahçe(10º titolo) Retrocessioni Yalovaspor Afyon Belediye MVP Alpha Kaba Miglior marcatore Jarmar Gulley (519) MVP delle finali Jan Veselý Ultimo aggiornamento dati: 28 maggio 2022 Cronologia della competizioneed. successiva →     ← ed. preced...

 

1983 video gameWill Harvey's Music Construction SetDeveloper(s)Will Harvey[1]Richard Plom (Atari ST)Publisher(s)Electronic ArtsPlatform(s)Apple II, Atari 8-bit, Atari ST, Commodore 64, IBM PC, Apple IIGSRelease1983Genre(s)Composition notation Will Harvey's Music Construction Set (MCS) is a music composition notation program designed by Will Harvey for the Apple II and published by Electronic Arts in 1983.[2] Harvey wrote the original Apple II version in assembly language when ...

 

Флін-ле-РашFlines-lez-Raches   Країна  Франція Регіон О-де-Франс  Департамент Нор  Округ Дуе Кантон Дуе-Нор Код INSEE 59239 Поштові індекси 59148 Координати 50°25′38″ пн. ш. 3°11′02″ сх. д.H G O Висота 15 - 40 м.н.р.м. Площа 19,22 км² Населення 5610 (01.01.2021[1]) Густота 291,9 ос./км² Розм...

Ernst SieberErnst Sieber in 2007Born(1927-02-24)24 February 1927Horgen, SwitzerlandDied19 May 2018(2018-05-19) (aged 91)Zurich[1]NationalitySwissAlma materUniversity of ZürichOccupation(s)Swiss pastor, social worker, writer and former politicianYears active1957–2018Notable workFounder of the Sozialwerke Pfarrer Sieber foundation and relief organisationSpouseSonja Sieber-VasalliChildren5[2]AwardsErnst Sieber#AwardsWebsiteOfficial website (in German) Ernst Sieb...

 

Его Высокопреосвященство кардиналГиацинт Сигизмунд Гердилнем. Hyacinthe Sigismond Gerdil Префект Священной Конгрегации Пропаганды Веры 27 февраля 1795 — 12 августа 1802 Предшественник Леонардо Антонелли Преемник Стефано Борджиа Деятельность католический священник, философ...

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!