UrbanPro

Learn Java Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

What is selection sort in java?

Asked by Last Modified  

14 Answers

Learn Java

Follow 0
Answer

Please enter your answer

Asst. Professor with 17 years of Experience in Teaching students of B.Tech(Mechanical Engineering)

The selection sort is a combination of searching and sorting. During each pass, the unsorted element with the smallest (or largest) value is moved to its proper position in the array. The number of times the sort passes through the array is one less than the number of items in the array. In the selection...
read more
The selection sort is a combination of searching and sorting. During each pass, the unsorted element with the smallest (or largest) value is moved to its proper position in the array. The number of times the sort passes through the array is one less than the number of items in the array. In the selection sort, the inner loop finds the next smallest (or largest) value and the outer loop places that value into its proper location. read less
Comments

Effective Programming

Selection sort is a sorting algorithm. You can implement this algorithm in any language. The basic idea is to select the smallest element of the array and placing it to the head of array. This step needs to repeated for rest of array. Your first task is to find the smallest element location in the...
read more
Selection sort is a sorting algorithm. You can implement this algorithm in any language. The basic idea is to select the smallest element of the array and placing it to the head of array. This step needs to repeated for rest of array. Your first task is to find the smallest element location in the array. int min; for(int i=1; iread less
Comments

Web Developer

Selection sort is not part of Java. It is an algorithm. It can be implemented any language. In selection sort we will making two loops, one to select an element and other to check with other elements in the list. If the element is big then we will be swapping, untill all the elements are iterated
Comments

Selection Sort is a algorithm which can be implemented in all programming languages which includes Java.
Comments

IT Professional Trainer with 15 years of experience in IT Industry

The selection sort is a combination of searching and sorting. During each pass, the unsorted element with the smallest (or largest) value is moved to its proper position in the array. The number of times the sort passes through the array is one less than the number of items in the array. In the selection...
read more
The selection sort is a combination of searching and sorting. During each pass, the unsorted element with the smallest (or largest) value is moved to its proper position in the array. The number of times the sort passes through the array is one less than the number of items in the array. In the selection sort, the inner loop finds the next smallest (or largest) value and the outer loop places that value into its proper location. read less
Comments

15 years Experienced Computer Science Teacher. Interested in Home Tuitions or Coaching center or colleges part time

Selection sort is a technique that selecting the position and then inserted the data and achieving sorting O(n~2) is complexity is a part of data structure applying for each and every language.
Comments

Software Professional with 6 yrs and 5 months of experience

Hi, First of all selection sort is same in any programming language be it java, C or C++ etc. It has same logic but syntax of writing it will differ with language. Selection sort is one of the many sorting algorithms to sort unordered numbers stored in an array. In selection sort we repeatedly...
read more
Hi, First of all selection sort is same in any programming language be it java, C or C++ etc. It has same logic but syntax of writing it will differ with language. Selection sort is one of the many sorting algorithms to sort unordered numbers stored in an array. In selection sort we repeatedly find the largest(or smallest) element in array and move it to its final position in the array. for example our array is A[ 63 75 90 12 27]. Here highest element is 90 whose index is A[2] and highest index is A[4]. so swap element A[2] with A[4] after which our array becomes A[63 75 27 12 90]. Here element 90 reached to its final position i.e. highest index. Same process is repeated unless our array is sorted completely. Hope it help. Thanks, Simpa read less
Comments

Java Professional

Selection sort will select the lowest element in each iteration and swap the values.If you go through the algorithm,you can understand how it works : You have an array int a = {29,64,73,34,20}; for(int i =0; i
Comments

Bachelors Degree (B.Sc. with physics , chemistry , maths ) Master degree ( M.Sc. with computer science ) Master of computer application

Selection sort is a sorting algorithm, it is a easiest way to solve over more complicated algorithms and its improves a little on the bubble sort by reducing the number of swaps . When it design with java code so that time selection start with lowest value and exchanges it with the first element .and...
read more
Selection sort is a sorting algorithm, it is a easiest way to solve over more complicated algorithms and its improves a little on the bubble sort by reducing the number of swaps . When it design with java code so that time selection start with lowest value and exchanges it with the first element .and after that remaining n-1 elements . read less
Comments

Java Trainer

Finding minimum element and swaping with index element void SelectionSort(int a, int array_size) { int i; for (i = 0; i < array_size - 1; ++i) { int j, min, temp; min = i; for (j = i+1; j < array_size; ++j) { if (a < a) ...
read more
Finding minimum element and swaping with index element void SelectionSort(int a[], int array_size) { int i; for (i = 0; i < array_size - 1; ++i) { int j, min, temp; min = i; for (j = i+1; j < array_size; ++j) { if (a[j] < a[min]) min = j; } temp = a[i]; a[i] = a[min]; a[min] = temp; } } read less
Comments

View 12 more Answers

Related Questions

Is it possible to learn java at home without coaching in one month?
It all depends on you. If you are already aware of programming then it is definetly possible to learn java at home. But if learn through a tutor then you can learn easily.
Pritom
0 0
5
What is a good foundation course for JAVA?
I will not prefer any programming language or technology instead, You can focus on Concept and Principles. Because when you say your a programmer you should be a programmer rather than saying Java programmer,...
Rajeev J
In what ways is C# similar to Java?
C# and Java share several similarities as both are influenced by C and C++: Object-Oriented Programming (OOP): Both languages are designed with a strong emphasis on OOP principles, including encapsulation,...
Aparna
0 0
5
will I get certificate
Better than certificate if you enroll with me you will get confidence and lot of practical knowledge...certifications dont matter after a period of time what really matters is your approach to a problem...
Sk.
How to find a good Java coaching centre?
Its all depends on the trainer and his expertise. I would suggest you to get feedback from the students who already joined.
Abirami
1 0
6

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Interview Tip : Q1) Why Strings are immutable in java ? What happen if it was mutable in java?
As we all know that Strings in java are immutabe in nature, now the question comes why the creator made it immutable in nature, although this field used maximum in any java program. The answer to this...

Class, Object and Methods in JAVA
Lesson-1: Class, Object and Methods of Java can be compared with body, heart and brain. Without these 3 things, Java does not exist. If you Google the above 3 items, you will find many definitions. But...

4 Things Every Tech Startup Needs to Know About The Coaching Industry
Knowledge on any subject is widely available to those who wish to learn. However, just gathering knowledge from other people doesn’t guarantee results in business. Results come from applying what...

Difference Of Inheritance In C++ And Java
In Java , multiple inheritance is not applicable directly but we can implement the concept by using the interfaces. In c++ and Java, the common types of inheritances are: Single Multi level Hybrid Hierarchical

Java
Java is a high level language which is far better than procedural languages like C, Fortran and Pascal. Java completely stands with the principles of OOPS (Object Oriented Programming Structure). The...
A

Abhisheak Saxena

0 0
0

Recommended Articles

Java is the most famous programming language till date. 20 years is a big time for any programming language to survive and gain strength. Java has been proved to be one of the most reliable programming languages for networked computers. source:techcentral.com Java was developed to pertain over the Internet. Over...

Read full article >

Java is the most commonly used popular programming language for the creation of web applications and platform today. Integrated Cloud Applications and Platform Services Oracle says, “Java developers worldwide has over 9 million and runs approximately 3 billion mobile phones”.  Right from its first implication as java 1.0...

Read full article >

In the domain of Information Technology, there is always a lot to learn and implement. However, some technologies have a relatively higher demand than the rest of the others. So here are some popular IT courses for the present and upcoming future: Cloud Computing Cloud Computing is a computing technique which is used...

Read full article >

Before we start on the importance of learning JavaScript, let’s start with a short introduction on the topic. JavaScript is the most popular programming language in the world, precisely it is the language - for Computers, the Web, Servers, Smart Phone, Laptops, Mobiles, Tablets and more. And if you are a beginner or planning...

Read full article >

Looking for Java Training Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for Java Training Classes?

The best tutors for Java Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Java Training with the Best Tutors

The best Tutors for Java Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more