Shonu Tech

Business, Digital Marketing, SEO, Technology, Programming Languages, Computer

Home Advertisement Full Widh

Post Page Advertisement [Top]

Bubble Sort in Data Structure

bubble sort, selection sort, bubble sort in data structure, selection sort in data structure, data, algorithm of data structure, program of data structure, data science, big data, google data studio, edi, data studio, etl, data mining, timestamp, hadoop, data analytics, metadata, data entry, dfd, data warehouse, csv file, timestamp to date, bigquery, nosql, data center, apache spark, redcap, business analytics, olap, rdbms, json to csv, data structures and algorithms, quantitative data, binary search tree, relational database, data flow diagram, dataset, kobotoolbox, data governance, data management, knime, world bank data, data collection, time series, big data analytics, aws glue, azure data factory, google studio, kaggle datasets, azure data studio, datatable, pandas read csv, csv to json, data base, big query, heap sort, primary data, global data, secondary data, discrete data, predictive analytics, data processing, geojson, data driven, odata, dcim, raw data, edw, datawrapper, amazon redshift, nosql database, hyperscale, azure synapse, pandas to csv, data mart, crisp dm, dqlab, cdata, google bigquery, data type, data engineering, azure databricks, rapidminer, aws redshift, exploratory data analysis, free data, dashboards, data model, aws kinesis, context diagram, pandas iloc, continuous data, all data, flat file, d3js, octoparse, bubble sort in c, apache superset, google data, bubble sort algorithm, column chart, netdata, dplyr, time series data, prescriptive analytics, data flow, datalake, structured data, mockaroo, mnist dataset, uci machine learning repository, database management, database design, apache hadoop, databank, data abstraction, data quality, data analysis in research, unstructured data, opendata, ssdt, datasets, iris dataset, data acquisition, debezium, data structures in c, world development indicators, customer data platform, data storage, tableau prep, anonymized, data integration, data migration, er model, bigint, demographic data, eurostat database, pddikti kemendikbud, kobocollect, heap data structure, google big query, csv reader, descriptive analytics, azure synapse analytics, python stack, current timestamp, etl testing, etl process, minmaxscaler, data visualisation, azure purview, amazon kinesis, spring data, data steward, data cleansing, clob, dfd diagram, tableau server, data architecture, spatial data, primary and secondary data, max heap, python for data analysis, time series database, google data analytics, google data center, data gathering, data literacy, pandas profiling, qualitative data analysis, data structures and algorithms in java, bubble sort in java, data source, pandas to excel, selection sort in c, primary data and secondary data, datahub, data factory, data structures in java, trifacta, a relational database consists of a collection of, data frame, uint8, selection sort algorithm, google dataset search, mysql datetime, data room, distributed database, census connect, pandas add column, pandas write csv, un comtrade, dataops, data mapping, bubble sort c++, metaboanalyst, data and information, 365 data science, mysql timestamp, entity relationship model, deduplication, data driven decision making, data warehouse architecture, graph data structure, hashing in data structure, sql datetime, parquet file, powerdesigner, advanced analytics, mysql json, refinitiv eikon, uci dataset, relational model, microsoft dataverse, pandas astype, linked list in python, data structures and algorithms in python, medidata rave, kaggle competition, datastream, data models in dbms, google servers, pandas iterrows, crdt, data analysis example, bubble sort python, single source of truth, athena log in, csv to sql, read csv pandas, statistical data, data strategy, power bi gateway, data science projects, data profiling, relational database management system, infile, geospatial data, er model in dbms, database system, ipums, sklearn datasets, json data, time series graph, boolean data type, r read csv, sources of data, openrefine, pentaho data integration, azure log analytics, data storytelling, data compression, data in brief, sql timestamp, data structures and algorithms pdf, data fabric, azure data explorer, snowflake company, ms power bi, no data, citydata, mysql boolean, varchar2, a data, pandas read json, azure analysis services, redshift spectrum, qualitative and quantitative data, data is the new oil, btree, string data type, analysis of data, orange data mining, data services, imf data, data collection in research, data point, non relational database, sap mdg, data virtualization, audit log, data marketing, lambda architecture, rbind, google looker, punjab data, dataminer, binary search tree in data structure, kdnuggets, web mining, learning analytics, cloudwatch logs, pandas save csv, clickstream, sql connection string, tabular data, data loader, kinesis firehose, quantitative data analysis, data system, jsonb, data is beautiful, structured and unstructured data, data server, data grip, pandas join two dataframes, erwin data modeler, lims system, ccpa compliance, odbc connection, google dataset, azure table storage, sql boolean, query sql, semi structured data, clinical data management, json to csv python, digital analytics, first party data, discrete and continuous data, spark read csv, aggregate data, test data, sqldbm, secondary data analysis, data platform, data sharing, data cube, database security, data file, webscraping, realtime database, aws snowmobile, pandas show all columns, hadoop big data, common data service, dbf file, data scientist job, data access, pandas timestamp, data fusion, real time data, 360digitmg, example of data, ecrf, apache parquet, data management system, digital data, pandas library, dmbok, etl tool, fiverr data entry, palantir foundry, data intelligence, dataloop, binary data, sorting in data structure, spss data analysis, datatable c#, database marketing, business intelligence software, selection sort java, heap sort algorithm, quick sort in data structure, python heap, selection sort in python, selection sort c++, data structures and algorithms in c++, optimal binary search tree, insertion sort in data structure, c linked list, binary tree python, binary search in data structure, linear search in data structure, singly linked list program in c, data structures and algorithms course, linked list c#, javascript data structures, linked list program in c, stack program in c, binary search tree java, min heap c++, balanced binary search tree, binary search tree c++, c structure, bubble sort c#, data structures and algorithms w3schools, data structures and algorithms geeks for geeks, bubble sort example, advanced data structures, bubble sort algorithm in c, bfs in data structure, heap sort in data structure, binary search tree python, binary search tree program in c, application of stack data structure, bubble sort javascript, heap in java, ds algo, dfs in data structure, problem solving with algorithms and data structures using python, bubble sort pseudocode, data structures using c, heap sort c++, heap sort program in c, c# data structures, data structures and algorithms made easy, learn data structures and algorithms, bubble sort code, binary search tree example, data structures and algorithms in python pdf, narasimha karumanchi, types of sorting in data structure, binary search tree insertion, java algorithms, binary search tree in c, max heap c++, order by two columns sql, spanning tree in data structure, heap sort in c, python max heap, radix sort in data structure, data structures and algorithms in c, min heap java, selection sort example, fundamentals of data structures in c, stack c, heap in c++, min heap python, circular linked list java, python graph data structure, union find data structure, stack algorithm, types of data structure in c, doubly linked list python, data structures course, dfs using stack, javascript data structures and algorithms, introduction to data structures, geeksforgeeks dsa, udemy data structures and algorithms, mastering data structures & algorithms using c and c++, binary tree and binary search tree, binary search tree algorithm, heap sort python, on which algorithm is heap sort based on, doubly linked list program in c, heap sort java, searching and sorting in data structure, singly linked list program in data structure, coursera data structures and algorithms, structure in cpp, bubble sort best case, data structures and algorithms javatpoint, java heap data structure, heap sort algorithm in data structure, bubble sort geeksforgeeks, data structures and algorithm analysis in c++, stack programming, bubble sort worst case, breadth first search tree, dsa in python, best way to learn data structures and algorithms, data structures in c pdf, coding ninjas dsa course, heap algorithm, sorting algorithms in data structure, hackerrank data structures, heap sort example, introduction to java programming and data structures, minimum spanning tree in data structure, types of searching in data structure, data structures and algorithms using python, bubble sort code in c, stack and queue in java, bubble sort algorithm c++, stack and queue in python, a common sense guide to data structures and algorithms, heap structure, data structures using python, ds and algo, dsa javatpoint, quick sort algorithm in data structure, linkedlist python, selection sort algorithm in c, selection sort geeksforgeeks, learning javascript data structures and algorithms, narasimha karumanchi data structures, in a min heap, programiz dsa, java max heap, queue algorithm, data structures and algorithms tutorialspoint, order by multiple columns sql, bubble sort algorithm java, leetcode data structures, heap gfg, dsa in java, c++ min heap

What is Bubble Sort in Data Structure-?

Bubble Sort arrange N number of array elements by placing the biggest element on proper position. It always arrange the data in descending order.

Example:- int a[5]={7, 6, 3, 4, 1} = 1, 3, 4, 6, 7

Procedure of Bubble Sort in Data Structure:-
In the following given numbers 7 and 6 changes the place and rest of the numbers will be in the same place in the second line. 
 In the second line now 7 and 3 will change the place. 
 In the third line 7 and 4 will change the line. 
 In the third line 4 and 7 will change the place and 7 came at the end.
 Remaining 6, 3, 4, 1
 Now the same process will be in all of the reaming numbers.
1.
        7, 6, 3, 4, 1
        6, 7, 3, 4, 1
        6, 3, 7, 4, 1
        6, 3, 4, 7, 1
        6, 3, 4, 1, 7
        Take (7) out and remaining 6, 3, 4, 1
2.
        6, 3, 4, 1
        3, 6, 4, 1
        3, 4, 6, 1
        3, 4, 1, 6
        Take (6) out and remaining 3, 4, 1
3.
        3, 4, 1
        3, 4, 1    (write same because 4 is bigger then 3)
        3, 1, 4    (comparison will be in 4 and 1 in the second line)
        Take (4) out and remaining 3, 1
4.
        3, 1
        1, 3
        Take (3) out and remaining 1
5.
        1 (1 is the single number and it can't compare)

Now take the out numbers which is in brackets reversely
        1, 3, 4, 6, 7 this is the answer.

Algorithm for Bubble Sort in Data Structure

Step 1:- Begin
Step 2:- Input a[5]    0-4
Step 3:- Set i ⬅ 3
Step 4:- Repeat step 4 to 9 while (i>=0)
Step 5:- Set j ⬅ 0
Step 6:- Repeat step 7 and 8 while (j<=i)
Step 7:- If (a[j]>a[j+1]) the
                Set temp  ⬅ a[j]
                a[j] ⬅ a[j+1]
                a[j+1] ⬅ temp
Step 8:- j ⬅ j+1
Step 9:- i ⬅ i-1
Step 10:- Print a[5]
Step 11:- Exit

What is Selection Sort in Data Structure-?

Selection Sort arrange N element of array by placing the smallest element in proper position in case of ascending order arrangement.

Example:- int a[5]={7, 6, 3, 4, 1} = 1, 3, 4, 6, 7

Procedure of Selection Sort in Data Structure:-

In this comparison will happen between smallest and biggest number in the given array number and they will change the place and make an ascending order.

1. Comparison between 7 and 1
        7. 6, 3, 4, 1
        1, 6, 3, 4, 7

2. Comparison between 6 and 3
        1, 6, 3, 4, 7
        1, 3, 6, 4, 7

3. Comparison between 6 and 4
        1, 3, 6, 4, 7
        1, 3, 4, 6, 7

4. Ascending order answer in 1, 3, 4, 6, 7 and for descending order it will be reverse

Algorithm for Selection Sort in Data Structure

Step 1:- Begin
Step 2:- Input a[5]
Step 3:- Set i ⬅ 0
Step 4:- Repeat step 5 to 10 while (i<4)
Step 5:- Set m ⬅ a[i], j ⬅ i+1
Step 6:- Repeat step 7 and 8 while (j<5)
Step 7:- If m>a[j] then
                Set m ⬅ a[j]
                Set loc ⬅ j
Step 8:- j ⬅ j+1
Step 9:- If a[loc]<a[i] then
                Set temp ⬅ a[loc]
                a[loc] ⬅ a[i]
                a[i] ⬅ temp
Step 10:- Set i ⬅ i+1
Step 11:- Print a[5]
Step 12:- Exit

No comments:

Post a Comment

Bottom Ad [Post Page]