From 98a521a2f82a3bdaece02747809eba4da0f7b3ea Mon Sep 17 00:00:00 2001 From: sandeepdey105 <52873609+sandeepdey105@users.noreply.github.com> Date: Thu, 1 Oct 2020 20:28:04 +0530 Subject: [PATCH 1/8] Add files via upload From b79c3082c513d59488eb30fcc25da6593f52c2c1 Mon Sep 17 00:00:00 2001 From: sandeepdey105 <52873609+sandeepdey105@users.noreply.github.com> Date: Thu, 1 Oct 2020 20:30:37 +0530 Subject: [PATCH 2/8] Add files via upload --- Prime_number_algo-2.c | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Prime_number_algo-2.c diff --git a/Prime_number_algo-2.c b/Prime_number_algo-2.c new file mode 100644 index 0000000..114f737 --- /dev/null +++ b/Prime_number_algo-2.c @@ -0,0 +1,42 @@ +#include +#include +int isPrime(int n, int i) +{ + if(i == 1) + return 1; + else + { + if(n%i == 0) + return 0; + else + isPrime(n, i-1); + } +} + +int main() +{ + int num, prime; + clock_t start,end; + + printf("Enter a positive number to check if Prime: "); + scanf("%d", &num); + start=clock(); + isPrime(num, num/2); + end=clock(); + prime = isPrime(num, num/2); + if(prime == 1) + { + printf("\n%d is a prime number", num); + } + else + { + printf("\n%d is a Composite number", num); + } + + double time_taken=(((double)(end-start))/CLOCKS_PER_SEC); + + printf("\nThis program takes %f seconds to execute \n",time_taken); + return 0; +} + + From dfb870f7b77a1d891ec664b6fb20ccf70ee2f276 Mon Sep 17 00:00:00 2001 From: sandeepdey105 <52873609+sandeepdey105@users.noreply.github.com> Date: Thu, 1 Oct 2020 20:31:41 +0530 Subject: [PATCH 3/8] Add files via upload --- 1830133_exp_2_1.c | 119 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 1830133_exp_2_1.c diff --git a/1830133_exp_2_1.c b/1830133_exp_2_1.c new file mode 100644 index 0000000..1af2d5a --- /dev/null +++ b/1830133_exp_2_1.c @@ -0,0 +1,119 @@ +#include +#include +#include +#include + +bool prime_alpha(int n) +{ + for(int i=n;i>1;i--) + { + if(n%i==0) return false; + } + return true; +} + +bool prime_beta(int n) +{ + if (n <= 1) return false; + if (n <= 3) return true; + + if (n%2 == 0 || n%3 == 0) return false; + + for (int i=5; i*i<=n; i=i+6) + if (n%i == 0 || n%(i+2) == 0) + return false; + + return true; +} + +int power(int x, unsigned int y, int p) +{ + int res = 1; + x = x % p; + + while (y > 0) + { + if (y & 1) + res = (res*x) % p; + + y = y>>1; + x = (x*x) % p; + } + return res; +} + +bool miillerTest(int d, int n) +{ + int a = 2 + rand() % (n - 4); + int x = power(a, d, n); + + if (x == 1 || x == n-1) + return true; + + while (d != n-1) + { + x = (x * x) % n; + d *= 2; + + if (x == 1) return false; + if (x == n-1) return true; + } + + return false; +} +bool prime_gamma(int n) +{ + if (n <= 1 || n == 4) return false; + if (n <= 3) return true; + + int d = n - 1; + while (d % 2 == 0) + d /= 2; + + int k= 30; + for (int i = 0; i < k; i++) + if (!miillerTest(d, n)) + return false; + + return true; +} + +double time_alpha(int a) +{ + clock_t start,end; + start=clock(); + prime_alpha(a); + end=clock(); + double time=(((double)(end-start))/CLOCKS_PER_SEC); + return time; +} +double time_beta(int a) +{ + clock_t start,end; + start=clock(); + prime_beta(a); + end=clock(); + double time=(((double)(end-start))/CLOCKS_PER_SEC); + return time; +} + +double time_gamma(int a) +{ + clock_t start,end; + start=clock(); + prime_beta(a); + end=clock(); + double time=(((double)(end-start))/CLOCKS_PER_SEC); + return time; +} + +int main() +{ + int num[10]={71,173,281,409,541,659,801,941,1069,1223}; + for (int i=1;i<10;i++) + { + printf("\n algo_1 :%f",time_alpha(num[i])); + printf(" algo_2 :%f",time_beta(num[i])); + printf(" algo_3:%f",time_gamma(num[i])); + } +} \ No newline at end of file From c5e4c39698a4a2e4d976fb61a0325ad95e6ab9ca Mon Sep 17 00:00:00 2001 From: sandeepdey105 <52873609+sandeepdey105@users.noreply.github.com> Date: Thu, 1 Oct 2020 20:33:35 +0530 Subject: [PATCH 4/8] Add files via upload From 0b8cfbc75b0de0a83e0b7f07c5401d50a4da481c Mon Sep 17 00:00:00 2001 From: sandeepdey105 <52873609+sandeepdey105@users.noreply.github.com> Date: Thu, 1 Oct 2020 20:36:52 +0530 Subject: [PATCH 5/8] Add files via upload --- lab2_first.CPP | 105 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 lab2_first.CPP diff --git a/lab2_first.CPP b/lab2_first.CPP new file mode 100644 index 0000000..857950e --- /dev/null +++ b/lab2_first.CPP @@ -0,0 +1,105 @@ +#include +#include +#include +using namespace std; +void gcd(int m, int n) +{ + while (n > 0) + + { + + int r = m % n; + + m = n; + + n = r; + + } + + cout<<"GCD ="<=n?n:m; + + for(i=c;i>=1;i--) + { + if(m%i==0 && n%i==0) + { + printf ("conc = %d \n",i); + break; + } + } + +} +void middle(int a, int b) +{ + int i,c,ans=1,m=0,n=0,k=0; + + c=a>=b?b:a; + + for(i=2;i<=c;i++) + { + n=0; + m=0; + if(a%i==0) + { + m=1; + a=a/i; + } + if(b%i==0) + { + n=1; + b=b/i; + } + if(n==1 && m==1) + { + ans=ans*i; + } + if(n==1 || m==1) + { + i--; + } + } + printf("The middle is:%d \n",ans); + +} +int main() +{ + int m, n,i; + + for( i=0;i<6;i++) + { + cout<<"Enter-two integer numbers: "; + cin>>m>>n; + + clock_t start,end; + + start=clock(); + gcd(m,n); + end=clock(); + + double time_taken=(((double)(end-start))/CLOCKS_PER_SEC); + + cout<<"This program takes "< Date: Thu, 1 Oct 2020 20:47:11 +0530 Subject: [PATCH 6/8] Add files via upload From 7663a4f346331cdb49ad3388334eb0003ce0a376 Mon Sep 17 00:00:00 2001 From: sandeepdey105 <52873609+sandeepdey105@users.noreply.github.com> Date: Thu, 1 Oct 2020 20:47:45 +0530 Subject: [PATCH 7/8] Add files via upload --- anshul2.html | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 anshul2.html diff --git a/anshul2.html b/anshul2.html new file mode 100644 index 0000000..db49413 --- /dev/null +++ b/anshul2.html @@ -0,0 +1,29 @@ + + +####SKILLS DESCRIPTION#### + + +

SKILLS DESCRIPTION +

+
Coding with "C"
+

C is a higher level language, we were have having C programming as a subject in the 2nd Semester, and I have secured "A" Grade in C programming language. as "C" is the very basic format of language it also motivated me to go and wxplore other languages like java,python etc. +

DSA with "C"
+profile picture +

Algorithms are generally created independent of underlying languages, i.e. an algorithm can be implemented in more than one programming language. Search − Algorithm to search an item in a data structure. Sort − Algorithm to sort items in a certain order. Insert − Algorithm to insert item in a data structure. we were having DSA with "C" as a subject in our 3rd Semester, and I have secured "A" Grade in it.

+
Coding with "C++"
+profile picture +

C++ is a general-purpose programming language , we were have "Object Oriented Programming with C++" as a Subject in our 4th Semester, and I have secured "A" Grade in it. it was a simple Language,learning it was very intresting.it is an extension of the C programming language, or "C with Classes". +

Coding with "basic-python"
+profile picture +

Python is an interpreted, high-level, general-purpose programming language. i have done a course of python with udemy, also i have done training under Eduvance on "python and ML", where we used basics of python

+
ML and IBM Watson
+profile picture +profile picture +

Machine learning is the study of computer algorithms that improve automatically through experience. It is seen as a subset of artificial intelligence.Watson is a question-answering computer system capable of answering questions posed in natural language, developed in IBM's DeepQA project by a research team led by principal investigator David Ferrucci.I have successfully completed training under this course this is very intresting topic. I have also done 2 minor and 1 major project with ML. I have also used Watson for Machine Learning

\ No newline at end of file From 847adb531a398e39ea92aea8fedd2ded12bc2c87 Mon Sep 17 00:00:00 2001 From: sandeepdey105 <52873609+sandeepdey105@users.noreply.github.com> Date: Mon, 5 Aug 2024 16:28:05 +0530 Subject: [PATCH 8/8] Added SGC-Maersk.drawio --- SGC-Maersk.drawio | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 SGC-Maersk.drawio diff --git a/SGC-Maersk.drawio b/SGC-Maersk.drawio new file mode 100644 index 0000000..be5a97c --- /dev/null +++ b/SGC-Maersk.drawio @@ -0,0 +1,10 @@ + + + + + + + + + +