Posts by Taanvi Goyal

Author Biographical Info: I.T. student. Arya college of Engineering and Technology. Python developer and Python coder.

Implementation of Perceptron Algorithm for AND Logic with 2-bit binary input in Python

By Taanvi Goyal

Before we start the implementation question arises What is Perceptron? Perceptron is an algorithm in machine learning used for binary classifiers. It is a supervised learning algor.... Read More

OpenCV Image Thresholding Techniques – Python

By Taanvi Goyal

OpenCV Image Thresholding is one of the popularly used technique in OpenCV. Thresholding is the assigning of pixel values in relation to the given threshold value. It is a segmenta.... Read More

Flyweight Design Pattern in Python

By Taanvi Goyal

A flyweight design pattern is a type of StructuralDesign Pattern. flyweight design aims to minimize the number of objects required in the program during the runtime. In short, it .... Read More

Find missing elements of a range in Python

By Taanvi Goyal

In this simple tutorial, we are going to learn how to find missing elements of a range in Python programming with easy and simple code examples. Suppose we have an array of any siz.... Read More

Python | Check sum of Covered and Uncovered nodes of Binary Tree

By Taanvi Goyal

In this solution, we are going to see how to check sum of Covered and Uncovered nodes of Binary Tree in Python programming. What is the covered and uncovered node? In a binary tree.... Read More

Check for Children Sum Property in a Binary Tree in Python

By Taanvi Goyal

Children Sum property is that the root’s value must be equal to the sum of the data value of its immediate left child and right child. We can say that under this property; fo.... Read More

Singleton Design Pattern in Python

By Taanvi Goyal

Singleton design pattern is a pattern which we use to restrict a class to initialize its various objects. In short, it can be said as a method to define a class, defined in a way t.... Read More

Karger’s algorithm for Minimum Cut in Python

By Taanvi Goyal

Karger’s algorithm is a type of ‘random algorithm’ because every time we run it, it gives out a solution that can not be sure to be the best solution. The Karger&.... Read More