Machine Learning (ML) Text classification using K Nearest Neighbors (KNN) In this article, we will demonstrate how we can use K-Nearest Neighbors (KNN) algorithm for classifying input text into different categories. We used 20 news groups for a demo.
Machine Learning (ML) PageRank PageRank is an algorithm to assign weights to nodes on a graph based on the graph structure and is largely used in Google Search Engine being developed by Larry Page
Software Engineering Get length of array in C and C++ In C and C++, we find the length of an array we need to use the sizeof operator and get the length as size of entire array divided by size of an element.
Algorithms Bozosort Bozosort is a random sorting algorithms where the key idea is to swap any two elements of the list randomly and check if the list is sorted. The average time complexity of Bozosort is O(N!) and the space complexity is O(1).
Algorithms Number of ways to pair elements In this article, we are going to discuss about element pairing problem where we need to find the number of ways a set of elements can be pair or kept separate. This can be solved using Dynamic Programming in linear time O(N).
Software Engineering Hashing in C++ using std::hash In this article, we will cover how hashing is natively supported in C++ through STL (std:hash) and how we can use it to generate hash of any object in C++.
Algorithms Finding number of pairs with a certain XOR value In this article, we are going to find the number of pairs in an unsorted array, whose XOR values matches with our target value (say K). Using our efficient approach (with Hash map), we can solve this in O(N) time complexity while the brute force approach takes O(N^2) time complexity
Algorithms Check if a number is an Armstrong Number An Armstrong number is an integer such that the sum of the digits raised to the power of the number of digits is equal to the number itself. We verify it in O(logN * loglogN) time.
Algorithms Number of ways to represent a number N as sum of K Fibonacci terms The problem we will solve is that given a number N and K, we need to find the numbers of ways we can represent N as a sum of K fibonacci numbers. We will solve this problem efficiently using a recursive technique in O(N).
Algorithms Autocomplete feature using TRIE Data Structure Autocomplete is a feature of suggesting possible extensions to a partially written text and is widely used in search engine, code IDEs and much more. Trie data structure is a perfect fit to implement this feature efficient in terms of memory and time [O(length of string)].
Software Engineering Post a tweet with video using Twitter API We demonstrated how you can tweet a video along with text and subtitles using the Twitter API using Requests library (native) for HTTP calls. It uses the Media Upload API of Twitter to accomplish this.
Software Engineering Different ways to add 1 to a number We compared 8 different techniques to increment a number by 1 by generating the assembly code. It depends on the compiler and language as well.
Software Engineering How to ban use of some functions in C and C++? The approach to prevent the use of functions is to replace the function definition (using macros) with a dummy definition with a message that the function is banned from use.
Software Engineering Run a process in background on Linux Running a process in the background means that the process will not occupy the screen and we can continue working on it with different commands. This is done using &
Software Engineering Complete Guide to Screen command on Linux Screen is an application in Linux system which is used to manage terminal sessions and run processes even when the terminal screen is closed. In this guide, we have demonstrated all screen commands so that you can use it in your daily work.
Machine Learning (ML) Language Identification Techniques In this article, we will understand the different techniques for language identification which involves two steps namely language modelling and classification
Software Engineering Post a tweet with image using Twitter API In this article, we will demonstrate how you can tweet an image using the Twitter API using two approaches: Tweepy (simple) and Requests library (native). It uses the media upload API of Twitter to accomplish this.
Software Engineering Source Code Management and Version Control In this article, we will learn how source code is managed using version control systems like Git and along this, we will learn important terminologies such as versioning systems, Base lines, change control and others.
Machine Learning (ML) Text classification using Naive Bayes classifier In this article, we have explored how we can classify text into different categories using Naive Bayes classifier. We have used the News20 dataset and developed the demo in Python.
Machine Learning (ML) Gradient Boosting Gradient Boosting is a machine learning algorithms used to predict variable (dependent variable). It is used in regression and classification problem.
Machine Learning (ML) Grid Search Grid Search is a machine learning tool which is used to tune the hyperparametres of various machine learning algorithms like decision tree and SVM
Algorithms Break a number in 3 parts (n/2, n/3, n/4) recursively to get maximum sum Given a number n, we can divide it in only three parts n/2, n/3 and n/4 recursively and find the maximum sum of the 3 parts. This can be solved in linear time using Dynamic Programming
Programmer Humor Best Programming Memes of 2019 This is the ultimate list of the best programming memes of 2019. It includes epic memes of Elon Musk, Greta Thunberg to attacking JavaScript. Enjoy.
Machine Learning (ML) LexRank method for Text Summarization LexRank method for text summarization is another child method to PageRank method similar to TextRank. It uses a graph based approach for text summarization
Software Engineering New Features in Python 3.8 We have discussed several features of Python 3.8 such as Walrus Operators and pickling protocol which will allow programmers to get acquainted with these new features.