Skip to content

Instantly share code, notes, and snippets.

View deep5050's full-sized avatar
💻
EMBEDDED SYSTEM

Dipankar Pal deep5050

💻
EMBEDDED SYSTEM
View GitHub Profile
@deep5050
deep5050 / os_algos_pythhon.txt
Last active January 6, 2020 15:09
os assignments alorthm
-------------------------------------------------
graph initiator
import sys
from Graph import Graph
@deep5050
deep5050 / os.txt
Last active January 6, 2020 05:56
all OS assignments ----- chandy lamport,misra hass , raymond's tree , ho ramamurthy ------
----------------------------------------------------------------------------------------------------------------------------
graph initiator
----------------------------------------------------------------------------------------------------------------------------
#include<stdio.h>
#include<stdlib.h>
int main()
{
int n,**adj,incount0=0,i,j,*source,*non_sink,i1=0,i2=0;
printf("\nEnter number of nodes:");
@deep5050
deep5050 / SOFT_COMPUTING_Practice.ipynb
Last active January 4, 2020 20:55
back propagation,GA based weight determination , generic GA, perceptron learning
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@deep5050
deep5050 / SOFT_COMPUTING.ipynb
Last active January 4, 2020 20:57
bacpropagation, GA based weight determination, generic GA, perceptron learning
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@deep5050
deep5050 / chandy-lamport.py
Created November 1, 2019 02:53
chandy lamport implementation
# Dipankar Pal (25th sep 2019)
import queue
class node(object):
def __init__(self, name, balance):
self.name = name
self.temp_state = []
self.recorded_state = []
@deep5050
deep5050 / generic_backprop.py
Created October 24, 2019 04:00
generic backpropagation with auto tuning
import numpy as np
import matplotlib.pyplot as plt
np.random.seed(100)
class Layer:
"""
Represents a layer (hidden or output) in our neural network.
"""
var bytesToSize = function (a, b) {
if (0 === a) return "0 Bytes";
var c = 1024, d = b || 2, e = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"],
f = Math.floor(Math.log(a) / Math.log(c));
return parseFloat((a / Math.pow(c, f)).toFixed(d)) + " " + e[f]
}
@deep5050
deep5050 / perceptron.py
Created September 27, 2019 03:00
A simple single layer ANN ( perceptron) to realize logic gates function
import numpy as np
import matplotlib.pyplot as plt
class Perceptron(object):
"""
This class defines a single layer perceptron with 3 inputs ;
initial weights will be set to 0;
one extra bias w[0] will be added;
Params
file:///C:/Users/student/Downloads/SomeCorpusAccessToolsforBanglaCorpusIJOAL2016.pdf
@deep5050
deep5050 / divisible_11.sh
Created March 25, 2018 11:57
(((bash shell script))) 1. find prime factors of a given integer ,,2. print a pattern, 3. tells a integer is divisible by 11 or not without dividing it by 11 .
#check wheather a number is divisible by 11 or not without divide it by 11
echo "enter a number:"
read input
temp=$input
#extract digits from the number
i=0
while [ $input -ne 0 ];do
buff=`expr $input % 10`