Aditya Chatterjee's Blog, page 193

October 7, 2020

Carmichael Number

Carmichael Number is an odd composite number which follows the following condition applicable in Fermat's Little Theorem.


Fermat's little theorem states that if p is prime and a is not a multiple of p, then a p - 1 ≡ 1 mod p. Stated theorem gives an achievable way to detect non-primee. For a > 1, we write F(a) for the set of positive integers n satisfying a n - 1 ≡ 1 mod n. By Fermat’s theorem, F(a) includes all primes that are not divisors of a. If n ∈ F(a), then gcd(a, n) = 1, since, clearl...

 •  0 comments  •  flag
Share on Twitter
Published on October 07, 2020 14:39

MobileNet V1 Architecture

Convolutional Neural Networks(CNN) have become very popular in computer vision. However, in order to achieve a higher degree of accuracy modern CNNs are becoming deeper and increasingly complex. Such networks cannot be used in real applications like robots and self driving cars.In this section we will be discussing a CNN architecture that aims to effectively tackle this problem.


MobileNet

MobileNet is an efficient and portable CNN architecture that is used in real world applications. MobileNets ...

 •  0 comments  •  flag
Share on Twitter
Published on October 07, 2020 07:14

Scope of Variables in Java Programming

Scope of a variable defines how a specific variable is accessible within the program or across classes. An assigned value to a variable makes sense and becomes usable only when the variable lies within the scope of the part of the program that executes or accesses that variable.


scope-2


Variables are mainly of the following types:



Static Variables
Non-Static Varaiables

Reference: Oracle Official Documentation


The non-static variables are further classified into:



Block Variables
Local Variables
Class...
 •  0 comments  •  flag
Share on Twitter
Published on October 07, 2020 06:51

Basics of "stdio.h" in C

We all know that C is a general-purpose and Procedural programming language. And for most of us, It is the entry point or basic to learn other programming languages. In this article we'll discuss a bit about the Standard Header Library "stdio.h". Firstly we'll start by explaining about the structure of C program. Secondly, we discuss up on the Introduction to Header file(as we stick specific to "stdio.h"). Later, we look into specific attributes of Header file like - Built-in functions, Library ...

 •  0 comments  •  flag
Share on Twitter
Published on October 07, 2020 00:32

September 30, 2020

Contribute and grow

Hacktoberfest is a month long virtual event where you can make four contributions towards your favorite Open Source project (such as Cosmos by OpenGenus). You will not only get to learn new things but also get free goodies delivered to you at your doorstep. It is powered by DigitalOcean.


Being a part of Hacktoberfest since 2018, we strongly recommend you to participate in this. It will take a few hours over a few days and the benefits and enjoyment will be life-long.


We, at OpenGenus, are comple...

 •  0 comments  •  flag
Share on Twitter
Published on September 30, 2020 09:25

Contribute and grow

Hacktoberfest is a month long virtual event where you can make four contributions towards your favorite Open Source project (such as Cosmos by OpenGenus). You will not only get to learn new things but also get free goodies delivered to you at your doorstep. It is powered by DigitalOcean.


Being a part of Hacktoberfest since 2018, we strongly recommend you to participate in this. It will take a few hours over a few days and the benefits and enjoyment will be life-long.


We, at OpenGenus, are comple...

 •  0 comments  •  flag
Share on Twitter
Published on September 30, 2020 09:25

September 24, 2020

Reverse a doubly linked list in C++

In this article, we are going to see how to reverse a doubly linked list by reversing the links of each node (without swapping values of nodes) and have implemented the solution using C++.


Introduction to Doubly Linked List

A doubly linked list is a linear data structure which is a linked list which contains an extra pointer to store the address of the previous node. It is a variation of singly linked list. In singly linked list, only forward traversal is possible, whereas in doubly linked list,...

 •  0 comments  •  flag
Share on Twitter
Published on September 24, 2020 11:47

September 19, 2020

Chrome Dinosaur (T-Rex

We all have played the t-rex game on chrome! Its time to make our own now.

Dino_non-birthday_version


We will be using Processing for the same, and you may install it at https://processing.org/download/.


You may start with opening Processing, and naming your sketch as tRexGame.

Make sure you have opened it in Java mode. java


Our game consists of the following entities,



The player (the T-rex)
The Obstructions

We may create 2 more files (tabs in the processing window) for the above entities. These are actually .pde files.

tabs


E...

 •  0 comments  •  flag
Share on Twitter
Published on September 19, 2020 04:09

Chrome Dinosaur (T-Rex

We all have played the t-rex game on chrome! Its time to make our own now.

Dino_non-birthday_version


We will be using Processing for the same, and you may install it at https://processing.org/download/.


You may start with opening Processing, and naming your sketch as tRexGame.

Make sure you have opened it in Java mode. java


Our game consists of the following entities,



The player (the T-rex)
The Obstructions

We may create 2 more files (tabs in the processing window) for the above entities. These are actually .pde files.

tabs


E...

 •  0 comments  •  flag
Share on Twitter
Published on September 19, 2020 04:09

September 9, 2020

Main points on BASH (Bourne-Again SHell)

BASH is a command language interpretor for Linux.
BASH was developed by GNU Project.
BASH is backward compatible with sh shell.
BASH has also incorporated various features from C Shell as well as Korn Shell.

BASH Files

/etc/profile : It is a systemwide initialization file which is executed when using login shells.
/etc/bash.bashrc : It is systemwide BASH startup file. Runs when we start BASH for the the first time in our system after turning it on.
/etc/bash.logout : It is systemwide BASH cle...
 •  0 comments  •  flag
Share on Twitter
Published on September 09, 2020 08:36