Ads block

Banner 728x90px

Write a program to implement Linear Congruential Generators in python


a = 5 c = 3 z0 = 7 m = 16 zp = z0 n = [] i = 0 #def mainfunc () : while i < 5 : # 5 is the number of random numbers zi = (a*zp + c) …
Read more »

Write a program to implement geometry distribution in python.


#Python program for Geometry m = 16 a = 5 c = 3 z = 7 mylst = [] count = [] print "Random Numbers are : " for num in range (m): r…
Read more »

Write a program to implement Binomal distribution in python.


# Python program for bernouli u = [] def test ( p ): printf() if u[ 0 ] <= p: return 1 else : return 0 def printf ():…
Read more »

python program for finding fibonacci series upto n numbers


#python program for finding fibonacci series upto n numbers #Alamgir Hossain, CSE, JUST def fibo ( n ): if n <= 1 : return n else :…
Read more »

Write a prolog program to find the permutation of the given list in Artificial Intelligence.


% PROLOG PROGRAM TO FIND THE PERMUTATION OF THE GIVEN LIST   % Alamgir Hossain, CSE, JUST   % domains list = symbol * %predicates permute ( list , li…
Read more »

Write a Prolog program to determine whether a element in a member of list in Artificial Intelligence.


% PROLOG PROGRAM TO DETERMINE WHETHER A ELEMENT IS A MEMBER OF LIST % Alamgir Hossain, CSE, JUST list = integer * findnum ( integer , list ). findnum ( X…
Read more »