How many equivalence classes in the RL relation for {w in {a, b}* | (#a(w) mod m) = ((#b(w)+1) mod m)}

Abraham Murciano Benzadon

How many equivalence classes in the RL relation for

{w in {a, b}* | (#a(w) mod m) = ((#b(w)+1) mod m)}

I am looking at a past test question which gives me the options

  • m(m+1)
  • 2m
  • m^2
  • m^2+1
  • infinite

However, i claim that its m, and I came up with an automaton that I believe accepts this language which contains 3 states (for m=3).

Am I right?

enter image description here

Patrick87

Actually you're right. To see this, observe that the difference of #a(w) and #b(w), #a(w) - #b(w) modulo m, is all that matters; and there are only m possible values of this difference modulo m. So, m states are always sufficient to accept a language of this form: simply make the state corresponding to the appropriate difference the accepting state.

In your DFA, a2 corresponds to a difference of zero, a1 to a difference of one and a3 to a difference of two.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

{w in {a、b} * |のRL関係にある同値類の数 (#a(w)mod m)=((#b(w)+1)mod m)}

分類Dev

a ^^ b mod mを計算する方法は?

分類Dev

flask many-to-many-relation leads to "Multiple classes found for path"

分類Dev

awk and equivalence classes

分類Dev

Need to install libapache2-mod-php7.0 if I'm installing PHP7.0 FPM?

分類Dev

Removing Duplicates from sorted LinkedList Relation b/w "slow" and "head"

分類Dev

1 mod3の説明

分類Dev

MOD REWRITE (htaccess) how to rewrite: index.php?lang=$1&pagePL=$2

分類Dev

Algorithm to finding if the numbers in the list, when added or subtracted, are equal to a mod b

分類Dev

How can I make a Many to many relation on same table (many to many Join To Self)

分類Dev

A => M [B]をM [A => B]に変える

分類Dev

L = {(na(w)-nb(w))mod 3> 0}のDFAを構築します

分類Dev

How to check if mod_rewrite is enabled in php?

分類Dev

How to convert sql mod to django orm?

分類Dev

c#のルール:mod b、aはbより大きい

分類Dev

How to create a one to many relation between models in Ruby on Rails?

分類Dev

Using std algorithm library for unique equivalence with respect to binary relation

分類Dev

Many to many relation and query builder

分類Dev

How many (classes of) objects can YOLO detect?

分類Dev

How to extend many Error classes dynamically?

分類Dev

How to test the equivalence of maps in Golang?

分類Dev

How to test the equivalence of maps in Golang?

分類Dev

w3m保持自动刷新

分類Dev

1行でX Mod Nを増分

分類Dev

How to run mod_mono on Debian Jessie (package libapache2-mod-mono missing)?

分類Dev

Javaでの時間ベースのトークンを解析するには?(1M 1M 1D 1Y 1W 1S)

分類Dev

How to read informats data: $1,000.1M to 1000.1

分類Dev

How remove entry in join table many-to-many relation (ASP. NET)

分類Dev

hibernate how to select the many-side from an one-to-many relation

Related 関連記事

  1. 1

    {w in {a、b} * |のRL関係にある同値類の数 (#a(w)mod m)=((#b(w)+1)mod m)}

  2. 2

    a ^^ b mod mを計算する方法は?

  3. 3

    flask many-to-many-relation leads to "Multiple classes found for path"

  4. 4

    awk and equivalence classes

  5. 5

    Need to install libapache2-mod-php7.0 if I'm installing PHP7.0 FPM?

  6. 6

    Removing Duplicates from sorted LinkedList Relation b/w "slow" and "head"

  7. 7

    1 mod3の説明

  8. 8

    MOD REWRITE (htaccess) how to rewrite: index.php?lang=$1&pagePL=$2

  9. 9

    Algorithm to finding if the numbers in the list, when added or subtracted, are equal to a mod b

  10. 10

    How can I make a Many to many relation on same table (many to many Join To Self)

  11. 11

    A => M [B]をM [A => B]に変える

  12. 12

    L = {(na(w)-nb(w))mod 3> 0}のDFAを構築します

  13. 13

    How to check if mod_rewrite is enabled in php?

  14. 14

    How to convert sql mod to django orm?

  15. 15

    c#のルール:mod b、aはbより大きい

  16. 16

    How to create a one to many relation between models in Ruby on Rails?

  17. 17

    Using std algorithm library for unique equivalence with respect to binary relation

  18. 18

    Many to many relation and query builder

  19. 19

    How many (classes of) objects can YOLO detect?

  20. 20

    How to extend many Error classes dynamically?

  21. 21

    How to test the equivalence of maps in Golang?

  22. 22

    How to test the equivalence of maps in Golang?

  23. 23

    w3m保持自动刷新

  24. 24

    1行でX Mod Nを増分

  25. 25

    How to run mod_mono on Debian Jessie (package libapache2-mod-mono missing)?

  26. 26

    Javaでの時間ベースのトークンを解析するには?(1M 1M 1D 1Y 1W 1S)

  27. 27

    How to read informats data: $1,000.1M to 1000.1

  28. 28

    How remove entry in join table many-to-many relation (ASP. NET)

  29. 29

    hibernate how to select the many-side from an one-to-many relation

ホットタグ

アーカイブ