Skip to main content

Posts

Recursion And Dynamic Programming

An  Analysis using  Fibonacci series in C++ Recursion and Dynamic Programming are like two sides of the same coin. Both are widely used in many instances and here in this article, we are going to explore both approaches using a simple well-known example. First of all, what is recursion? Picture 1 - A small depiction of how recursion looks like Recursion is an approach where the solution of a problem depends on the solutions of the smaller instances of the same problem.  Shortly, in recursion, a method calls itself to solve a problem.  Example: Finding the factorial of an integer, say 4. We all know that 4! = 4x3x2x1 = 24. It can be done using a for loop like this. int fact = 1; for(int i = 4; i>0; i++) {     fact = fact * i; } But when it comes to being in recursion?  The process is simple. We can write 4! = 4x3! Similarly; 3! = 3x2! 2! = 2x1! 1! = 1 Here, each factorial calculation happens recursively. Picture 2 - How recursion works to calculate 4...

Personalizing GitHub Profile

How to customize a GitHub Profile? Image by Author How to make this? Create a repository.  Image by Author The name has to be the same as your profile name. Image by Author Make it a public one and select the checkbox to add a README file. Image by Author Click Edit README  Image by Author You’ll see the following. Image by Author The file we are working on supports GitHub’s markdown. By selecting the Preview, you can see what is the output that the codes you made do there. Image by Author Remove the comments and see what happens. Image by Author The output is Image by Author There are a lot of tools that help to create templates for this. Or else, you can refer to the documentation to do more cute things. You can fork my README file and can edit as you want to customize your own profile. Don’t forget to share some stars. You can edit the codes and can create a much more magnificent way of showing yourself. A GitHub profile README...

How to activate MS Office 2016 without product key?

Microsoft Office 2016 without activation! Without solving this, you may not be able to use these products' features. So how to get rid of this bullshit permanently? Here is the solution! Copy  the following content. @echo off title Activate Microsoft Office 2016 ALL versions for FREE!&cls&echo ============================================================================&echo #Project: Activating Microsoft software products for FREE without software&echo ============================================================================&echo.&echo #Supported products:&echo - Microsoft Office Standard 2016&echo - Microsoft Office Professional Plus 2016&echo.&echo.&(if exist "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")&(if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")&(for /f...

Parallel A* Search on GPU

A* search is a fundamental topic in Artificial Intelligence. In this article, let’s see how we can implement this marvelous algorithm in parallel on Graphics Processing Unit (GPU). Traditional A* Search Classical A* search implementations typically use two lists, the open list, and the closed list, to store the states during expansion. The closed list stores all of the visited states and is used to prevent the same state from being expanded multiple times. To detect duplicated nodes, this list is frequently implemented by a linked hash table. The open list normally contains states whose successors have not yet been thoroughly investigated. The open list’s data structure is a priority queue, which is typically implemented by a binary heap. The open list of states is sorted using the heuristic function  f(x) : f(x) = g(x) + h(x). The distance or cost from the starting node to the current state  x  is defined by the function  g(x) , and the estimated distance or co...

Mastering An Online Job Interview

Things You Should Know if You Are Attending a Job Interview From Your Home Many things have changed as a result of COVID-19, including how we limit face-to-face encounters. Many interviews, especially in the early phases of a talent search, are now conducted remotely. Online job interviews have grown in popularity in recent years, and many firms now use technology to conduct exploratory interviews on a regular basis.  Job interviews at virtually every level of the employment process became the standard during the epidemic. While online interviews are comparable to traditional in-person interviews, there are several significant distinctions to be aware of. Making a pitch through video conferencing tools like Skype, Zoom, or Google Hangouts might be intimidating for potential workers. Here are some virtual interview techniques to help you relax and land the job. 1 - Have a test-run with your machine Technology may be intimidating in today's world, and online interviews, in particular...

Multiclass Classification Using Support Vector Machines

Binary Classification The machine should only categorize an instance as one of two classes of this type: yes/no, 1/0, or true/false. In this sort of categorization inquiry, the answer is always yes or no. Is there a human in this photograph, for example? Is there a good tone to this text? Will the price of a specific stock rise in the coming month? Multiclass Classification In this case, the machine must categorize an instance into only one of three or more classes. Multiclass categorization may be shown in the following examples: Positive, negative, or neutral classification of a text Identifying a dog breed from a photograph A news item might be classified as sports, politics, economics, or social issue. Support Vector Machines (SVM) SVM is a supervised machine learning method that may be used to aid with both classification and regression problems. It aims to determine the best border (hyperplane) between distinct classes. In basic terms, SVM performs complicated data modificati...