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.
Software Engineering #warning directive in C #warning is a preprocessor directive in C which is used to raise compilation warnings for various situations. It is different from #error directive in that #warning will not cancel the compilation process while #error will cancel it.
Software Engineering #undef directive in C #undef is a preprocessor directive to remove an existing macro. It is useful as the only way to update an existing macro is to delete it (using undef) and create a new macro (using define).
Data Structures Sparse Table Sparse table is a data structure which pre-process the information to answer static Range Queries in constant time O(1) with O(N log N) preprocessing.
Machine Learning (ML) Decision Trees using Scikit-learn In this article, we will understand decision tree by implementing an example in Python using the Sklearn package (Scikit Learn).
Software Engineering Basics of Reflection in Java In Java, Reflection is a powerful and advanced feature that enables the programmers to inspect or modify the classes, interfaces, and methods of a program running on Java Virtual Machine.
Machine Learning (ML) SumBasic algorithm for text summarization SumBasic is an algorithm to generate multi-document text summaries. Basic idea is to utilize frequently occuring words in a document than the less frequent words so as to generate a summary
Software Engineering Uploading a File to server in Node.JS In this article, we will learn how to upload any file from the client side to a folder in the server by buidling a Node.js app.
Software Engineering Fullscreen API in JavaScript The full screen API allows an element on a page to be viewed in full screen. It makes it convenient for users to view web content in full pixel width and height.
Software Engineering #define directive in C #define is a preprocessor directive in C which is used to define macros. Macros are code framents which has been given a name.
Software Engineering #ifdef directive in C ifdef is an include guard. ifndef can be seen as if defined then do this till endif. It is opposite of [ifndef directive