The Gateway to Computer Science Excellence
+1 vote
85 views

number of string of length 3 using 4 distinct alphabet...

including string of  length zero and what if dont.?  

in Combinatory by Active (1.1k points) | 85 views

1 Answer

0 votes
lenth 0 =o

length 1= 4

length 2=16

length 3=64

total 84 .....string  where am i wrong..?
by Active (1.1k points)
0

number of string of length 3 using 4 distinct alphabet  including string of  length zero

strings of length 3 and length 0 only are asked, if strings of length at most 3 was asked, then you'd be correct.

0
Fir this question, shouldn't the answer be 65???

64 (for length 3) + 1 ( for length 0).

My question is, Should we count 1 for "0 length string", as we do in TOC(epsilon)???
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
50,741 questions
57,252 answers
198,061 comments
104,697 users