Aditya Chatterjee's Blog, page 201

June 20, 2020

Trigonometric Functions using in C

The math.h header defines various mathematical functions including trigonometric and hyperbolic functions. All the these predefined trigonometric functions use radians as argument. We have explored all Trigonometric Functions using in C.


So what's the deal with radians?


There are two forms of measurement for the the arc of a circle:



Degrees
Radians

for example: 180° is equal π rad - a half of the circle (180°= π)


CONVERSION OF DEGREES TO RADIANS

one degree equals 0.01745329 radians


#include ...
 •  0 comments  •  flag
Share on Twitter
Published on June 20, 2020 14:48

Native Language Identification (NLI)

By definition, Native language identification (NLI) is the task of determining an author's native language based only on their writings or speeches in a second language. This is an application of Machine Learning. Let us break this down to know what this actually means.


English is a language which is widely used throughout the word. But not all of them who write or speak english are native language speakers. This means that whenever anybody who is not a native english speaker writes or speaks i...

 •  0 comments  •  flag
Share on Twitter
Published on June 20, 2020 00:55

June 19, 2020

Disadvantages of CNN models

Disadvantages of CNN models

CNN (Convolutional Neural Network) is the fundamental model in Machine Learning and is used in some of the most applications today. There are some drawbacks of CNN models which we have covered and attempts to fix it.


In short, the disadvantages of CNN models are:



Classification of Images with different Positions
Adversarial examples
Coordinate Frame
Other minor disadvantages like performance

These disadvantages lead to other models/ ideas like Capsule neural network. We have explained the poi...

 •  0 comments  •  flag
Share on Twitter
Published on June 19, 2020 11:13

Advancing AIML to build a chatbot

Before starting this, it is highly recommended the you go through the article Getting Started with AIML at OpenGenus. It will set you foundations right to understand this better.


In this article, we have explored some advanced concepts in AIML (Artificial Intelligence Markup Language) such as sets, maps, the '$' wildcard, loops, Rich Media Elements, buttons, hyperlinks, formatting and much more.


Now let us get started!


Sets and Maps

If you code in any other language, or are familiar with mathem...

 •  0 comments  •  flag
Share on Twitter
Published on June 19, 2020 07:51

All about Python Dictionary

In this article, you will learn everything about Python dictionaries which is an useful in-built data structure frequently used to handle data.


Dictionaries are unordered mapping for storing items. Each item has key-value pair. Instead of storing objects in ordered sequence, like in List, dictionaries uses key-value pair to store objects. This allow users to quickly search for values without knowing index location.


Properties of Dictionary Keys:



Dictionaries are mutable, which means we can cha...
 •  0 comments  •  flag
Share on Twitter
Published on June 19, 2020 04:05

June 18, 2020

GraphQL Server with Node.JS

GraphQL is defined as a query language for APIs. With the help of graphQL, we can write queries for the data received. It is explained as Front-End focussed API but the fact is that, it is implemented on the server side. GraphQL enables us to describe the data rather than optimizing and implementing it.


A GraphQL server is a server side implementation of GraphQL. It provides the GraphQL data as an API that is needed by frontend applications.

We will implement GraphQL and GraphQL server from a m...

 •  0 comments  •  flag
Share on Twitter
Published on June 18, 2020 15:33

June 17, 2020

Production Process Manager (PM2) for Node.JS

PM2 is an open-source, advances, and efficient production process manager for applications that are built in Node.JS. PM2 comes with the built-in load balancer. It allows the monitoring of the application. It allows the user to reload the application without service interruption. It supports auto restart with efficient management of applications, services, processes and the facilitation of system admin tasks.


Features

It allows the application to be executed continuously without any interrupti...
 •  0 comments  •  flag
Share on Twitter
Published on June 17, 2020 03:04

Differences between CNN and RNN

CNN (Convolution Neural Network) and RNN (Recurrent Neural Network) are two core Machine Learning models and are based on different fundamental ideas. In this article, we have explored the differences between CNN and RNN in depth.


Introduction

Deep learning is a subfield of machine learning that deals with algorithms that are inspired from the structure, function and workings of the human brain. Artificial neural networks (ANN) are computing systems that are used in deep learning to enable mach...

 •  0 comments  •  flag
Share on Twitter
Published on June 17, 2020 02:16

June 16, 2020

First Unique Character in a String

This problem is one of the competitive questions dealing with strings, so as indicated by the title we need to find first unique i.e non-repeating character in a given string and return the index or else if no such character exists we return -1.

Note: We are considering only lowercase, if asked with uppercase or camelcase full string can be converted to lowercase.


Example :


Input : opengenus
Output : 0
# unique character ' O ' at position zero

Input : hellhell
Output : -1
# no unique character...
 •  0 comments  •  flag
Share on Twitter
Published on June 16, 2020 06:06

Reverse alternate groups of K nodes in a Singly Linked List

We are given a pointer to the head of a singly Linked List and you have to write a function to reverse the elements of the given singly Linked List in alternate groups of K nodes. Once the operation is performed, pointer to the head of the Linked List must be returned from the function.


Input: 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> 8 -> 9 -> 10
and
k = 3

Output: 3 -> 2 -> 1 -> 4 -> 5 -> 6 -> 9 -> 8 -> 7 -> 10

In the above example, k is equal to 3. Therefore we are required to reverse the elemen...

 •  0 comments  •  flag
Share on Twitter
Published on June 16, 2020 05:22