Introduction to Computer Science in C#
30 Nov 2021
Context
C# Data and Operations
Defining Functions of your Own
Basic String Operations
Decisions
While Loops
Foreach Loops
For Loops
Files, Paths, and Directories
Arrays
One Dimensional Arrays
Musical Scales and Arrays
Linear Searching
Sorting Algorithms
Binary Searching
Lab: Arrays
Lab: Performance
Multi-dimensional Arrays
Chapter Review Questions
Lists
Dictionaries
Classes and Object-Oriented Programming
Testing
Interfaces
Recursion
Data Structures
Appendix
Introduction to Computer Science in C#
»
Arrays
View page source
Arrays
One Dimensional Arrays
Basic Syntax
Parameters to Main
String Method Split
References and Aliases
Anonymous Array Initialization
Default Initializations
Array Examples and Exercises
Musical Scales and Arrays
Linear Searching
Linear Search
Sorting Algorithms
Exchanging Array Elements
Bubble Sort
Selection Sort
Insertion Sort
Shell Sort
Quicksort a.k.a. Partition Sort
Random Data Generation
Timing
Running the Code
Binary Searching
Elaborated Binary Search Exercise
Lab: Arrays
Overview
Goals
Tasks
Lab: Performance
The Experiments
Starter Project
Multi-dimensional Arrays
Rectangular Arrays (Two Dimensional)
Advanced topic: Array of Arrays
Chapter Review Questions