Write an algorithm or source code for merge sort using c language?

#include<stdio.h>

#include<conio.h>

void mergesort(int[],int ,int);

void merge(int[],int,int,int);

void main()

{

int a[10] = {10,9,7,10,23,63,29,11,02,83};

int i;

mergesort(a,0,9);

printf(“printing the sorted elements”);

for(i=0;i<10;i++)

{

printf(“\n printing the sorted elements’);

for(i=0;i<10;i++)

{

printf(“\n %d\n”,a[i]);

}

 

}

void mergesort(int a[],int beg,int end)

{

int mid;

if(beg<end)

{

mid= (beg+end)/2;

mergesort(a,beg,mid);

mergesort(a,mid+1,end);

merge(a,beg,mid,end);

 

 

}

 

}

void merge(int a[],int beg,int mid,int end)

{

int i =beg,j=mid+1;,k,index = beg;

int temp[10];

while(i<= mid && j<=end)

{

if  (a[i]  < a[j])

{

temp[index] = a[i];

i = i+1;

}

else

{

temp[index]= a[j];

j=j+1;

}

index++;

 

 

}

if(i> mid)

{

while(j<= end)

{

temp[index] = a[j];

index++;

j++;

 

}

}

else

{

while(i< =mid)

{

temp[index] = a[i];

index++;

i++;

 

}

}

k=beg;

while(k<index)

{

a[k]= temp[k];

k++;

 

}

}

 

getch();

}

output:———————–

printing the sorted elements:-

02,07,9,10,10,11,23,29,63,83

 

Write an algorithm for the insertion sort using C?

#include<stdio.h>

#include<conio.h>

void main()

{

int i,j,k,temp;

int a[10] = {10,9,7,101,23,44,12,78,34,23};

clrscr();

printf(“\n printing sorted elemts\n”);

for(k=1;k<10;k++)

{

temp = a[k];

j=k-1;

while(j>=0 && temp <=a[j])

{

a[j+1] =a[j];

j=j-1;

}

a[j+1] = temp;

 

}

for(i=0;i<10;i++)

{

printf(“\n %d\n”,a[i]);

 

 

}

getch();

}

output:—–

printing sorted elements:-

7,9,10,12,23,2,3,34,44,78,101

thank you just write and implement good luck:-

Asymptotic notation Big O

the asymptotic notation big o is considered as upper bound or worst case so the graph of f(n)  is never goes across the  c.g(n).

c.g(n) > f(n)

f(n ) <= c.g(n)

n>=n0

c>0,n0 >=1

so we can conclude that

f(n)=O (g(n))

we can understand this by if we consider  that we have to fine one element in the array then we follow the linear search algorithm and  find  that elements so the worst case will be the element is not present in the array or it will be the last element.

so i hope you will understand in my next article we will  solve some problem on it.

thank you

stay tuned.

 

what are the properties and design of algorithm ?

There are basically 5 properties of algorithm.

1.Input :-input can be any data type of data type.

It can be int ,float ,string ,char and array or tree etc.

2.output :- output can be any type of data type it can be int,char,float,tree,array etc.

3.  finitness:- there  should be a finite numbers of steps  finite number of algorithm  to executed   step by step process to solve the existing problem.

4.  Effectiveness:-   Algorithm should be effective  the process   or steps we chose is effective.

there should not be more than one way to process or interpreter a single algorithm.

Design of algorthm:—-

different way to present algorithm to solve problem.

1.natural language :-natural language is normal English language that is easily understand  by human being  but cant understand by machine.

read x and y

sum x and y

sum

2. pseudo code:-  It is just matching with programming language and quite understand for natural language also.It is just like a intermediate between machine and natural language.

example:-

Algorithm sum(A)

sum<-  0

for <- 1 to n  to do

sum <- sum+ A[i]

end

write “sum”

3.Flowchart:-

IT is a graphical representation of algorithm.

 

 

 

Latest technology trends that will impact business in 2020.

1.5G Network.

2.Autonomous Driving

3.The Empowered Edge

4.Democratization of Technology

5.Human Augmentation

6.Distributed Cloud

7.Darq age is here

8.Personal profiling

9.AI products

10.Data policing

11.Automation

12. Momentory Markets

13.Reskilling Human workforce

14.Medical upgrade

15.Digital Debit.

thank you:-

stay tuned

 

Webinar on Artificial Intelligence.

On the day on 9 /6/  2020.I got the chance to attend the international webinar on Artificial  Intelligence.The speaker is from German country.  But his home town is Dumka. He is a data science Manager in BASF SE of GERMAN.(the top most chemical company in German.)That is organised by Xaviour college Maharo.

So these are the some important  and use full  points that I am going to write on this article yet he also talked about lots of things out if this context also.

he also describe how he works and what company works and about his project .

Introduction to AI:—-

Artificial Intelligence first came  in 1995.  by jeans-marc.

AI is the development of the computer system that are able to perform tasks that would require human intelligence.

Artificial Intelligence in movies:-

In movies robots are able to talk ,think ,have emotions  and make decision just like humans.

Example of  these tasks are visual perception ,speech recognition ,decision_making ,and translation between languages.

Weak AI:-

Machine with weak  AI are made to respond to specific situations ,but  can not think for themselves.

Refrigerator is believed to be the first AI system because it can module your temperature   of the refrigerator can be modulated based on the outside temperature in the inside temperatures.

Strong AI:-

A machine with strong AI is able to think and act just like a human .

IT is able to learn from experinces.

It is under the supervised learning.and it understand the patterns.

Intelligence means to perform any tasks it takes the time of minimum 5 sec .

like adding the numbers 4+5+9,or protect from rain and apply break when the light got red etc.these types of intelligence develops in the machine in strong AI

sine there are no real life example of strong AI .yet the best  representation would be the holly wood portrays. like I robot,and robot and ex machina

In AI machine will have:-

  1. creativity
  2. emotions
  3. Imagination
  4. ethics
  5. empathy
  6. consciousness
  7. values
  8. mystery
  9. compassion
  10. Intuition

AI controversies :-

  1. potential job takeover
  2. growing laziness
  3. priority argument

robot relationship

what are the famous people aid about AI:-

Stephan Hawking :-

AI could be the end of mankind.

Sundar Pichai:-

AI is one of the most important things humanity  is working on.

It is more profound than I don’t know ,electricity  or fire.

Jack Maa:

The AI ,big data is a threat to human beings .the AI and robots are going to kill a lot of jobs because in the future ,there will be done by machine.

Elon mask:

The AI is an essential risk and one of the greatest risk that we face as a civilization.

AI:-

A program that can sense,reason,act and adapt.

Machine Learning:-

Algorithms whose performance   improves as they are exposed to more data overtime.

Deep Learning:-

subset of Machine learning which multi-layer neural network learn from vast amounts of data.

that all for the day

Thank you:–

 

 

 

 

 

 

 

 

 

 

what are the personal benefits of using quora?

GM friends :-

today we are trying to understand the benefits of quora to become a better version of yours.

first thing is that being confused is good,having question in your ind is good.you can solve all your questions with www.quora.com  so just quora it.

I have made my account on quora may be 2 years ago.

It helps me to learn new things and how to learn new things.

Quora gives us both facility  of asking questions and answers the question of another people.

you can share your knowledge with everyone by giving answer on quora.

In quora you will meet both kinds of people more experienced than you  and less experienced than you.

your question’s answers is given by the specialist or experienced  person in that field.

you can also share your information in any stream whatever you choose  during making account on quora.

like :-arts,science,commerce,biology,computer science,drawing,writing poem,  dancing ,mechanical, English, politics ,electrical, digital marketing,blogging ,motivation,self improvement  etc  any topics  you can share your knowledge .

you will get  lots of followers ,likes, up-voted ,   views , and can make new friends on Quora.

I have 4k content views on quora and i have answered 92 questions on quora.

you can share your story your poem or your success story on quora.and can motivate people for doing good in their field.

form quora you will get to know that where you are and where you have to go?

And the best feeling you will have  when you help other without  any expectation .

few days ago  a question is so much famous on quora and thousands of people answer this question you can also answer by making id on quora.

 

thank you:-

hope you will like this article.

you can comment also .

How to get slim and curved body?

everybody wants a good body and good appearance.and also that they can wear all types of dresses.

the more skinny people and the more fat people both cant wear their desirable dress.

so if you also want to wear your desirable  dress then here is the best and most effective exercise to help you to do so.

so the number one is half moon.

1.half moon:-

this exercise is quit difficult  to do initially .but after few days it becomes easy.

i also do this exercise sometimes.

this exercise help to get a slim and curved body .

you just have to hold this pose for 20 sec initially but after few days you can increase your duration.

This exercise is also best for your flexible body.

2.plank :

this is also one of the most popular and effective exercise to burn your belly  fat.

It strengths our mussels and make more flexible.

It increase our tolerance power.

and good for blood circulation also.

3.half crunches:-

. 

Last but not least this is also my favorite exercise.this exercise is very easy and you can do even in your bed.

and very effective for lower belly fats.

and also improve digestion and flexibility.

there are more kinds of crunches.

full crunches.

side crunches.

but half crunches is easy and effective .

so thank you:-

stay tuned in my next article i will talk about other exercise.

email me on smritykumari7070@gmail.com

4 best sites for seo to get higher ranking in your sites

gm friends so after to much browsing i found the best  4 sites that help you to get higher rank in  your sites or your bog. from google.

these sites helps you to get best keyword for your sites that you can make a good money.

this seo tool is too much important to get higher rank  from google .

more than keyword there are lots of factor that  are important to become a good blogger.

Another important factor is  back-links google gives it 2nd position around 200 factors.

there are also many terms like  cpc(cost per click)revenue ,keyword ,error free, issue free, and notice free is important .

so without wasting time just check out this websites and start to earn money.

this site also help me a lot to fine keyword and issues and error in my sites.

so you can go on with this.

i want to describe some keyword with cost per click it means google will pay you for single click in dollar   so have a look.

keyword                                                                  cpc

books                                                                $0.81

motivation                                                  $0.80

health                                                          $2.44

self improvement                                                  $4.53

this information is provided by ubbersuggest.

2.seoprofiler:-

this sites also provides a lots of beautiful tool.

this site provides the facility to audit your site and   aware you from your sites issues and warning and all notices.

so you can go on with also.

3.smalseotool:- This website is also very useful to fine keyword and many other tool like grammerly how much views you get on your blog  and article writer and many other tool check out one time.

4.Moz.com

this website also provide a seo tools to get more traffic on your site and creating back links and suggesting keyword.

that all for the today hope you will like my blog :-

if you like my blog then you can suscribe or can email me on smritykumari7070@gmail.com.

thank you.