Science Fair Projects Ideas - Knuth-Bendix completion algorithm

All Science Fair Projects

      

Science Fair Project Encyclopedia for Schools!

  Search    Browse    Forum  Coach    Links    Editor    Help    Tell-a-Friend    Encyclopedia    Dictionary     

Science Fair Project Encyclopedia

For information on any area of science that interests you,
enter a keyword (eg. scientific method, molecule, cloud, carbohydrate etc.).
Or else, you can start by choosing any of the categories below.

Knuth-Bendix completion algorithm

The Knuth-Bendix completion algorithm is an algorithm for transforming a set of equations (over terms) into a confluent term rewriting system. When the algorithm succeeds, it has effectively solved the word problem for the specified algebra. Hence, it can also be used to solve the coset enumeration problem. The word problem is, in general, undecidable, hence the algorithm cannot always terminate successfully. If it does not succeed, it will either run forever, or fail when it encounters an unorientable equation (i.e. an equation that it cannot turn into a rewrite rule). The enhanced completion without failure will not fail on unorientable equations and provides a semi-decision procedure for the word problem.

Description of the algorithm

Suppose we are given a presentation \langle X \mid R \rangle, where X is a set of generators and R is a set of relations giving the rewriting system. Suppose further that we have a well-ordering < words generated by X. For each relation Pi = Qi in R, suppose Qi < Pi. Thus we begin with the set of reductions P_i \rightarrow Q_i.

First, if any relation Pi = Qi can be reduced, replace Pi and Qi with the reductions.

Next, we add more reductions (that is, rewriting rules) to eliminate possible exceptions of confluence. Suppose that Pi and Pj, where i \neq j, overlap. That is, either the prefix of Pi equals the suffix of Pj, or vice versa. In the former case, we can write Pi = BC,Pj = AB; in the latter case, Pi = AB,Pj = BC.

Reduce the word ABC using Pi first, then using Pj first. Call the results r1,r2, respectively. If r_1 \neq r_2, then we have an instance where confluence could fail. Hence, add the reduction \max r_1, r_2 \rightarrow \min r_1, r_2 to R.

After adding a rule to R, remove any rules in R that might have reducible left sides.

Repeat the procedure until all overlapping left sides have been checked.

Example

Consider the presentation \{ x, y \mid x^3 = y^3 = (xy)^3 = 1 \}. We use the lexicographic ordering. In fact, this is an infinite group. Nevertheless, the Knuth-Bendix algorithm is able to solve the word problem.

Our beginning three reductions are therefore (1) x^3 \rightarrow 1, (2) y^3 \rightarrow 1, and (3) (xy)^3 \rightarrow 1.

First, we see an overlap of x in (1) and (3). Consider the word x3yxyxy. Reducing using (1), we get yxyxy. Reducing using (3), we get x2. Hence, we get yxyxy = x2, giving the reduction rule (4) yxyxy \rightarrow x^2.

Similarly, using the overlap of y in (2) and (3), we get the reduction (5) xyxyx \rightarrow y^2.

Both of these rules obsolete (3), so we remove it.

Next, consider the overlap of x of (1) and (5). Considering x3yxyx we get the rule yxyx = x2y2, so we get the rule (6) yxyx \rightarrow x^2y^2. This obsoletes rule (4) and (5), so we remove them. Considering xyxyx3, we get xyxy = y2x2, so we get the rule (7) y^2x^2 \rightarrow xyxy.

Now, we are left with the rewriting system

  • (1) x^3 \rightarrow 1
  • (2) y^3 \rightarrow 1
  • (6) yxyx \rightarrow x^2y^2
  • (7) y^2 x^2 \rightarrow xyxy

Checking the overlaps of these rules, we find no potential failures of confluence. Therefore, we have a confluent rewriting system, and the algorithm terminates successfully.

10-26-2009 08:16:03
The contents of this article is licensed from www.wikipedia.org under the GNU Free Documentation License. Click here to see the transparent copy and copyright details
Science kits, science lessons, science toys, maths toys, hobby kits, science games and books - these are some of many products that can help give your kid an edge in their science fair projects, and develop a tremendous interest in the study of science. When shopping for a science kit or other supplies, make sure that you carefully review the features and quality of the products. Compare prices by going to several online stores. Read product reviews online or refer to magazines.

Start by looking for your science kit review or science toy review. Compare prices but remember, Price $ is not everything. Quality does matter.
Science Fair Coach
What do science fair judges look out for?
ScienceHound
Science Fair Projects for students of all ages
All Science Fair Projects.com Site
All Science Fair Projects Homepage
Search | Browse | Links | From-our-Editor | Books | Help | Contact | Privacy | Disclaimer | Copyright Notice