March 2, 2012

flip-flops are required to produce a divide-by-32 device

5 flip-flops are required to produce a divide-by-32 device There are 5 flip-flops are required to produce a divide-by-32 device. We can have the no. of required flip-flops by . For 32 we have to do 2^5.

The main difference between a gated S-R latch and an edge-triggered S-R flip-flop

The main difference between a gated S-R latch and an edge-triggered S-R flip-flop The main difference between a gated S-R latch and an edge-triggered S-R flip-flop is that in gated S-R latch the output is dependent on active-high of enable input but in edge-triggered S-R flip-flop output will be affected by appropriate inputs at S […]

C Language File Include Example and Minimum Element Search Function from an Array

#include <cstdlib> #include <iostream> using namespace std; #include “header.h” int main(int argc, char *argv[]) { cout << “Roll No. mc100200752\n\nAssignment: CS301 – 4\n\n”; cout << “Question:\nWrite a program in c++ that takes any no”; cout << ” of elements through command prompt from”; cout << “user and saves it in an array. Then convert it […]

March 1, 2012

Stack

Stack A limitation; we have to access the last stack element first from stack (LIFO). IsEmpty() used to check either stack is emptied while using pop() or we use exception to handle this situation. If we want to use array inside, we have to shift the elements left to access/insert/delete a specific element in stack. […]

Link List

Link List Its usage provide faster program than usage of array. We use link list instead of array especially when we want to avoid the condition where array will be filled inside stack. Link list facilitate us to move further or backward. In doubly link list we have facility to move next and previous. In […]

Arrays

Characteristics of Arrays With array we can run push and pop fastest by deciding where to inert and where to delete an element in array. We can use add(), remove() functions to add an element to array inside the list and remove respectively from the current position. Add() moves the elements to right and place […]