Machine Learning (ML) KL Sum algorithm for text summarization Kullback-Lieber (KL) Sum algorithm for text summarization which focuses on minimization of summary vocabulary by checking the divergence from the input vocabulary.
Data Structures Interval Trees: One step beyond BST Interval tree is a variant of BST and is able to handle intervals in logarithmic time for search, insert and delete operations and is used in geometry.
Algorithms Split N into maximum composite numbers Given a number N, the problem is to count the maximum number of composite numbers that sum up to N. We solve this using a greedy algorithm in constant time
Algorithms Find point of 2D Line Intersection The point of intersection of two 2D lines can be calculated using two algorithms namely Elimination method and Determinant method which takes constant time O(1)
Software Engineering Different ways to initialize unordered_map in C++ In this article, we are going to learn about Unordered_map in C++ and specifically how to initialize them in our code in 4 different ways.
Algorithms Finding the number of sub matrices having sum divisible by K This article is about counting the number of sub-matrices such that the sum of the elements is divisible by k and using Dynamic Programming, we solve it in O(N^3)
Foo / Foobar in Computer Science Foo or Foobar in Computer Science/ Programming is a commonly used name for variables and functions. It has a history with MIT and DEC from 1959.
Machine Learning (ML) Image Recognition using Transfer Learning Approach In this post, we will explore Transfer Learning and see what exactly it is and how it works along with a Python implementation for the image recognition tasks.
Software Engineering Introduction to Lambda Expression in Java Lambda Expression is one of the newest features introduced in Java 8 release. It is an expression but in the form of an anonymous function definition.
Machine Learning (ML) LBPH algorithm for Face Recognition In this article, we will explore the Local Binary Patterns Histogram algorithm (LBPH) for face recognition. It is based on local binary operator and is one of the best performing texture descriptor.
Machine Learning (ML) Face Recognition using Fisherfaces In this article, we will explore FisherFaces techniques of Face Recognition. FisherFaces is an improvement over EigenFaces and uses Principal Component Analysis (PCA) and Linear Discriminant Analysis (LDA).
Software Engineering Swapping a queue in C++ STL In this article, we will explore examples of swapping queues. We can swap a queue in C++ STL in two ways using std::queue::swap and using std::swap.
Machine Learning (ML) Latent Semantic Analysis for text summarization Latent Semantic Analysis is an efficient technique for text summarization in order to abstract out the hidden context of the document.
Software Engineering #include in C #include is a preprocessor directive in C and C++ to include the code from other files (header files + C/ C++ code) in the current file.
Algorithms Number of ordered pairs such that (A[i] & A[j])=0 Given array A[] of n integers, find out the number of ordered pairs such that (A[i]&A[j])=0. This can be done using dynamic programming in O(N*(2^N)) time
Software Engineering Using Assert.h in C In this article we'll talk about one of those header files, namely the assert.h header file. First we'll look at the purpose of this file, second we'll go over code examples and in the third part we'll dive a little deeper into the details of this header file and tips on how to use it.
Software Engineering Java Time Package This article brings a brief introduction to some classes available by the Date/Time Java API, with samples to the main characteristics of each one of them.
Software Engineering Detect Operating System in C To check the operating system of the host in a C or C++ code, we need to check the macros defined by the compiler (GNU GCC or G++). For example, on Windows platform, the compiler has a special macro named _WIN32 defined.
Algorithms 8 Queens Problem using Branch and Bound In the backtracking approach of solving 8 queens problem, we maintain an 8x8 binary matrix for keeping track of safe cells and update it each time we place a new queen.
Algorithms Largest rectangular sub matrix having sum divisible by k This article is about finding the size of the largest area of the rectangular sub-matrix such that the sum of the elements is divisible by k.
Software Engineering #error directive in C #error is a preprocessor directive in C which is used to raise an error during compilation and terminate the process.
Software Engineering Compilation process in C (from code.c to a.out) Compilation is the process of converting a code in a programming language (C in our case) to machine code. In this process, the code goes through different steps depending upon the compiler and language. We will explore the compilation steps in C.
Software Engineering Check if a header file in C has been included To check if an header file has been included or not in a C or C++ code, we need to check if the macro defined in the header file is being defined in the client code.
Machine Learning (ML) Random Forests using Scikit-learn In this article, we will implement random forest in Python using Scikit-learn (sklearn). Random forest is an ensemble learning algorithm which means it uses many algorithms together
Algorithms Calculating Permutation Coefficient Given n and k, we will calculate permutation coefficient using dynamic programming in O(N * K) time complexity.