Last ant on rod ( NPTEL week 3 Assignment 3 Solution)

There are 'n' ants on a 'n+1' length rod. The ants are numbered from 1 to n and are initially placed at positions starting from position 1 till position n. They are moving either in left direction (denoted by '-1') or in the right direction (denoted by '1'). Whenever an ant crosses the boundary of the rod … Continue reading Last ant on rod ( NPTEL week 3 Assignment 3 Solution)

Networking : Some Points

1) What is Baud Rate ? ANSWER: The baud rate is the rate at which information is transferred in a communication channel"2400 baud" means that the serial port is capable of transferring a maximum of 2400 bits per second."For an asynchronous serial transmission it requires 1 start bit and 2 stop bits and for synchronous transmission … Continue reading Networking : Some Points

DBMS FUNCTIONAL DEPENDENCY

Functional Dependency Functional dependency (FD) is a set of constraints between two attributes in a relation. Functional dependency says that if two tuples have same values for attributes A1, A2,..., An, then those two tuples must have to have same values for attributes B1, B2, ..., Bn. Functional dependency is represented by an arrow sign … Continue reading DBMS FUNCTIONAL DEPENDENCY

Understanding Database Transactions: ACID Properties Explained

What is a Transaction? A transaction is an event which occurs on the database. Generally a transaction reads a value from the database or writes a value to the database. If you have any concept of Operating Systems, then we can say that a transaction is analogous to processes. Although a transaction can both read … Continue reading Understanding Database Transactions: ACID Properties Explained

Understanding Vectors in C++: Key Features

Vectors are Just like arrays but with some special Features that gives you some flexibility i.e If you want to add a element at a later stage ( like a dynamic array) etc. We define a Vector asvector<data type> variable_name(size); whereExample :  vector temperature(7); It defines a vector called temperature which is of type double and stores value … Continue reading Understanding Vectors in C++: Key Features

How to Determine Perfect Cubes Using Digital Roots

In order to check whether a number is a perfect cube or not, we find its prime factors and group together triplets of the prime factors. If no factor is left out then the number is a perfect cube. However if one of the prime factors is a single factor or a double factor then the number … Continue reading How to Determine Perfect Cubes Using Digital Roots