Java Programming Practical Session: DSA Prac 1, Slides of Data Structures and Algorithms

The requirements and topics covered in a Java programming practical session, including the use of various IDEs, creating and manipulating arrays, and implementing bubble sort. Students will learn how to create an array with random values, print a specific index value, verify if a specific value exists, delete a value, insert a new value, and perform linear search for a value.

Typology: Slides

2018/2019

Uploaded on 09/18/2021

kirushanthan-ragunadan-1
kirushanthan-ragunadan-1 🇱🇰

1 document

1 / 19

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
DSA$%$Prac*cal$1$
19/11/2014'
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13

Partial preview of the text

Download Java Programming Practical Session: DSA Prac 1 and more Slides Data Structures and Algorithms in PDF only on Docsity!

  • DSA -­‐ Prac*cal
    • 19/11/

Things You Need

§ IDE

§ Eclipse

§ Netbeans

§ IntelliJ

§ Running Java

§ Command-­‐line: java –version

java version "1.8.0_25" Java(TM) SE Runtime Environment (build 1.8.0_25-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

Remind you of something ?

Now, the bubble sort!!

true

-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐ | 0 | 16 | -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐ | 1 | 17 | -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐ | 2 | 14 | -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐ | 3 | 14 | -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐ | 4 | 14 | -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐ | 5 | 16 | -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐ | 6 | 12 | -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐ | 7 | 15 | -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐ | 8 | 18 | -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐ -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐ | 0 | 16 | -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐ | 1 | 17 | -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐ | 2 | 14 | -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐ | 3 | 14 | -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐ | 4 | 14 | -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐ | 5 | 16 | -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐ | 6 | 12 | -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐ | 7 | 15 | -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐ | 8 | 18 | -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐ | 9 | 55 | -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐