A Similarity Measure for Formal Languages Based on Convergent Geometric Series
Abstract
We present a distance metric on formal languages based on the accumulated weight of words in their symmetric difference. The contribution of an individual word to this weight decreases exponentially in its length, guaranteeing the distance between languages to be a real value between 0 and 1. We show that this distance is computable for regular languages. As an application, we show how the similarity measure derived from a modification of this metric can be used in automatic grading of particular standard exercises in formal language theory classes.
BibTeX
@inproceedings{bruse2022similarity,
author = {Florian Bruse and Maurice Herwig and Martin Lange},
title = {{A Similarity Measure for Formal Languages Based on Convergent Geometric Series}},
booktitle = {CIAA},
year = {2022},
doi = {10.1007/978-3-031-07469-1\_6},
}Ask Althea to put this paper to the test.
Loading related content...