Comp Sci Is Sequential Better for Counting 0s in Combinational Logic?

  • Thread starter Thread starter zak100
  • Start date Start date
zak100
Messages
462
Reaction score
11
Homework Statement
A computer game generates ‘1s’ and ‘0s’. These are associated with awards. The first ‘1’ (i.e. the first 1 of an uninterrupted sequence of 1's obtained by continuously running the program several times such that each execution generates a 1 output in that set of executions) results in 4 awards but the remaining 1’s do not result in any award. On the other hand, each odd numbered 0 results in 2 points and each even numbered 0 does not get any award. For the output 011100001011.. of executions results in awards 2400202024240……
Is the above activity mentioned in the game, combinational or it must be sequential?
(Developed by self)
Relevant Equations
No equations
Its sequential because we have to keep the count of 0s whether they are odd or not.

Zulfi.
 
Physics news on Phys.org
zak100 said:
Its sequential because we have to keep the count of 0s whether they are odd or not.
Yes. It has to have memory to do that.
 

Similar threads

Replies
17
Views
3K
Replies
10
Views
3K
Replies
32
Views
2K
Replies
8
Views
973
Replies
5
Views
3K
Back
Top