Preview

Performance Analysis of Bubble Sort Using a Modified Diminishing Increment Sorting

Powerful Essays
Open Document
Open Document
2162 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Performance Analysis of Bubble Sort Using a Modified Diminishing Increment Sorting
PERFORMANCE ANALYSIS OF BUBBLE SORT USING A MODIFIED DIMINISHING INCREMENT SORTING(A New Approach)

Mr. VIKAS BAJPAIB.TECH(CS) 3RD YEAR Department of CSE IEC-CET, GR. NOIDA lnbajpai09@rediffmail.com | Ms. SAMEHA ARORAB.TECH(CS) 3RD YEAR Department of CSE IEC-CET, GR. NOIDA sameha.arora@yahoo.com | Mr.ASHISH CHAKRAVARTIAssistant Professor Department of CSEIEC-CET,GR. NOIDAashish.me08@gmail.com | Prof. SHEO KUMARAssociate ProfessorDepartment of CSE IEC-CET, GR. NOIDA sheo@rediffmail.com |

ABSTRACT
Sorting involves rearranging information into either ascending or descending order. There are many sorting algorithms, among which is Bubble Sort. Bubble Sort is not known to be a very good sorting algorithm because it is beset with redundant comparisons. However, efforts have been made to improve the performance of the algorithm. With Bidirectional Bubble Sort, the average number of comparisons is slightly reduced. This paper presents a meta algorithm called Oyelami’s Sort that combines the technique of Bidirectional Bubble Sort with a modified diminishing increment sorting. The results show the comparison between

iii.)Definiteness: Each step of an algorithm must be precisely defined, the actions to be carried out must be rigorously specified for each case.

iv.) Output: An algorithm has one or more outputs-quantities that have a specified relation to inputs.

v.) Effectiveness: An algorithm is also generally expected to be effective, in the sense that its operations must all be sufficiently basic that they can in principle be done exactly and in a finite length of time by someone using pencil and paper.

different sorting methods as well as comparison between theoretical and practical values.The mathematical analysis has also been done of Oyelami’s sort.

KEYWORDS:Algorithm,Sorting,Bubble sort,Best case

Worst case,Average case,Comparison,Swapping.

INTRODUCTION
Using



References: * Scientific Research & Essay Vol 4 (8), pp.740- 744,August, 2009.Available online at http:// * Alfred V, Aho J, Horroroft, Jeffrey DU (2002). Data Structures and Algorithms (India: Pearson Education Asia). * Donald EK (1997). The Art of Computer Programming, Volume I, Fundamental Algorithms; Third Edition. US: Addison-Wesley. * Donald EK (1998). The Art of Computer Programming, Volume 3, Sorting and Searching, Second Edition. Addison-Wesley. * Frank MC (2004). Data Abstraction and Problem Solving with C++. US: Pearson Education, Inc. * Oyelami MO (2008). A Modified Diminishing Increment Sort for Overcoming the Search for Best Sequence of Increment for Shellsort”. J. Appl. Sci. Res., 4 (6): 760- 766. * Oyelami MO, Azeta AA, Ayo CK (2007). Improved Shellsort for the Worst-Case, the Best-Case and a Subset of the Average-Case Scenarios. J. Comput. Sci Appl. 14 (2): 73- 84. * Robert S (1998). Algorithms in C. Addison-Wesley Publishing Company, Inc. * Sara B, Allen G (2000). Computer Algorithms. US: Addison Wesley Longman. * Sartaj S (2000). Data Structures, Algorithms and Applications in Java. McGrawHill. * Shola PB (2003). Data Structures With Implementation in C and Pascal. Nigeria: Reflect Publish

You May Also Find These Documents Helpful

  • Good Essays

    Nt1420 Unit 6

    • 1145 Words
    • 5 Pages

    INSTRUCTIONS: 1. THERE ARE SIX (6) QUESTIONS IN THIS PAPER. 2. ANSWER FIVE (5) QUESTIONS ONLY. Question 1 Arrays are used when storing a large number of values. You are required to create an array named a and answer the following questions regarding array manipulation. a. Write a method fillRandom(int[] a, int min, int max), fill the array a with a random integer value. (Note: Math.random() returns a double in the range of 0.0 and 1.0, therefore it is cast to an integer number, between the minimum and maximum value). [6 marks] b. Write the Bubble sort method to sort array a into descending order. [10 marks] c. In the quicksort, an algorithm an element is chosen from the unsorted list. This element is called the…

    • 1145 Words
    • 5 Pages
    Good Essays
  • Good Essays

    ECET 370 Week 5 Lab 5

    • 650 Words
    • 3 Pages

    Exercise 1: Review of the Lecture Content Create a project using the ArrayList class and the Main class provided in DocSharing. The ArrayList class contains implementations of the first three search methods explained in this week's lecture: sequential, sorted, and binary search. The Main class uses these three methods. These programs test the code discussed in the lecture. Compile the project, run it, and review the code that is given carefully.…

    • 650 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Pt1420 Unit 1 Assignment 2

    • 1305 Words
    • 6 Pages

    Das, D., Gregersen, E., Hosch, L., Lotha, G., Sampaolo, M., Sinha, S. (2014). C++. In Encyclopedia Britannica.…

    • 1305 Words
    • 6 Pages
    Powerful Essays
  • Better Essays

    Venit, S., & Drake, E. (2011). Prelude to Programming Concepts and Design (5th ed.). Boston, MA: Addison-Wesley.…

    • 1800 Words
    • 6 Pages
    Better Essays
  • Satisfactory Essays

    A. Program Design – Following the directions in the assignment, clearly write up your problem design in this section and comment your pseudocode.…

    • 467 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    b. At least three aspects of the problem you think that the model will struggle to solve and provide reasoning as to why.…

    • 564 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    3) A description of at least two methods of sorting records and the benefits of each:…

    • 1173 Words
    • 6 Pages
    Good Essays
  • Powerful Essays

    It 210

    • 2960 Words
    • 12 Pages

    Prelude to Programming: Concepts and Design, Fifth Edition, by Stewart Venit and Elizabeth Drake. Published by Addison-Wesley. Copyright © 2011 by Pearson Education, Inc.…

    • 2960 Words
    • 12 Pages
    Powerful Essays
  • Powerful Essays

    It 210 Weeks

    • 2760 Words
    • 12 Pages

    Venit, S., & Drake, E. (2011). Prelude to programming: Concepts and design (5th ed.). Boston, MA: Addison-Wesley.…

    • 2760 Words
    • 12 Pages
    Powerful Essays
  • Powerful Essays

    References: Drake, E., & Venit, S. (2007). Extended Prelude to Programming Concepts & Design (3rd ed.). New York, New York: Pearson, Addison Wesley.…

    • 1318 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    week 1 assignment

    • 1379 Words
    • 6 Pages

    Drake, E., & Venit, S. (2011). Prelude to programming: Concepts and design (5th ed.). Boston, MA: AddisonWesley.…

    • 1379 Words
    • 6 Pages
    Satisfactory Essays
  • Better Essays

    Cmos

    • 7550 Words
    • 31 Pages

    As UWB has very large instantaneous bandwidth hence it offers substantial increase in channel capacity,which can be perceived from Shannon link formula:…

    • 7550 Words
    • 31 Pages
    Better Essays
  • Satisfactory Essays

    CS 220 – Programming w/ Data Structures: You have missed one assignment and one quiz. Your instructor has extended your assignment due date to this Sunday, April 10. Your instructor has also let you to take your Quiz # 2 during his office hours during this week. Let me know if you need additional support to study for this quiz. Your grade to date in this class is 30.2/37 81.62% B.…

    • 354 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Creative Writing

    • 813 Words
    • 4 Pages

    A. Program Design – Following the directions in the assignment, clearly write up your problem design in this section and comment your pseudocode.…

    • 813 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Scientific Method

    • 699 Words
    • 3 Pages

    reproducible so that it can be tested for errors. 5.Analyze the data and draw a conclusion: As…

    • 699 Words
    • 3 Pages
    Good Essays

Related Topics