Introduction To Computer Science PDF Fall 2024

Document Details

FervidDune

Uploaded by FervidDune

ETH Zurich

2024

ETH Zurich

Manuela Fischer and Felix Friedrich

Tags

computer science programming vectors algorithms

Summary

This document is an introduction to Computer Science from ETH Zurich, in Fall 2024. It contains material on vectors and algorithms. The document is a past paper.

Full Transcript

INTRODUCTION TO COMPUTER SCIENCE 252-0032, 252-0047, 252-0058 Document authors: Manuela Fischer and Felix Friedrich Department of Computer Science, ETH Zurich Fall 2024 1 Vectors...

INTRODUCTION TO COMPUTER SCIENCE 252-0032, 252-0047, 252-0058 Document authors: Manuela Fischer and Felix Friedrich Department of Computer Science, ETH Zurich Fall 2024 1 Vectors 112 Section 8 Vectors We can iterate over numbers: for (int i=0; i n; // definition and initialization: provides us with Booleans // crossed_out,..., crossed_out[n-1], initialized to false std::vector crossed_out = std::vector(n, false); // computation and output std::cout

Use Quizgecko on...
Browser
Browser