Articles for author: Vritika Naik

How to Master Data Structures and Algorithms?

Data Structures and algorithms is one of the most important topics that you need to have knowledge of along the path of being a software developer. The knowledge of this topic helps solve problems much more easily in the real world. It’s a skill that comes with practice. In this article, I will speak about the best ...

B Tree

B tree is an m-way tree which self balances itself. Such trees are extensively used to organize and manage gigantic datasets and ease searches due to their balanced nature. Takeaways Introduction to B Tree in Data Structure Binary trees can have a maximum of 2 children while a Multiway Search Tree, commonly known as a ...

Principle of Inclusion and Exclusion

The Principle of Inclusion and Exclusion (PIE) is a fundamental counting tool in combinatorics and probability theory. It adeptly determines the total elements that fulfill one or multiple criteria while eliminating redundancies. By aggregating individual counts and deducting shared elements, PIE ensures accurate outcomes. For instance, in quantifying individuals who own either a cat or ...

State Space Reduction in Dynamic Programming

State space reduction is the process that is used to decrease the number of states in a dynamic programming solution in an optimal way. It is specific to a given problem and usually involves reducing the size of its dimensions by a constant value. Scope of Article Takeaways The primary principle of dynamic programming is ...

Types of Graph in Data Structure with Examples

A graph can be defined as group of vertices and edges that are used to connect these vertices. In data structure, a graph G=(V,E) is a collection of sets V and E where V and E are the collections of vertices and edges respectively. An edge is a line or arc connecting 2 vertices and it is denoted by a pair (i,j) where i,j belong to a set of vertices V. Let’s see types ...