The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+3 votes
259 views
Subject: Finite Automata
Topic: DFA

Q) Can anyone explain me how i can find the no of strings of length k words that is accepted by a given DFA.

Do post the resources which can be helpful to understand this concept.
asked in Theory of Computation by (53 points)
retagged by | 259 views
+2
0
I think this can be done by finding the $kth$ power of the adjacency matrix of the DFA. The entry in $ith$ row and $jth$ column of this matrix will represent the number of paths of length $k$ from node $i$ to node $j$. Can someone confirm if this is correct?

1 Answer

+1 vote
This should be specific to a given DFA.
answered by Boss (18.2k points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
49,443 questions
53,648 answers
186,099 comments
70,909 users