← Indietro
EsameEsame completoTesto d’esame

15 01 2024 E TS

Esame completo di Algorithms and parallel computing per il corso di Mathematical Engineering presso Politecnico di Milano. Materiale proveniente dall’archivio storico Studwiz e classificato per la consultazione online.

Algorithms and parallel computingEsame completo

Informazioni sul documento

Cosa trovi in questo materiale

Esame completo di Algorithms and parallel computing per il corso di Mathematical Engineering presso Politecnico di Milano. Materiale proveniente dall’archivio storico Studwiz e classificato per la consultazione online.

Qualità dell’importazione: il testo è stato estratto direttamente dal documento originale.

Contenuti estratti dal documento

Passaggi rappresentativi riconosciuti nelle diverse parti del materiale. Il testo completo resta presente nella pagina per la ricerca, mentre l’anteprima compatta rende più semplice la lettura.

Pagina 1

Algorithms and Parallel Computing Course 052496 Prof. Danilo Ardagna, Prof. Damian Andrew Tamburri Date: 15-01-2024 Last Name: ............................................................. First Name: ............................................................. Student ID: ............................................................. Signature: ............................................................... Exam duration: 2 hours and 30 minutes Students can use a pen or a pencil for answering questions. Students are NOT permitted to use books, course notes, calculators, mobile phones, and similar connected devices. Students are NOT permitted to copy anyone else’s answers, pass notes amongst themselves, or engage in other forms of misconduct at any time during the exam. Writing on the cheat sheet is NOT allowed. Exercise 1: Exercise 2: Exercise 3: Exercise 1 (13 points) Blackjack is a popular casino game that is played with a 52-card deck of French cards. Your task is to build a software to manage the results of a blackjack tournament. In particular, we will focus on a simplified version of the game, in which one player only competes against the dealer. The goal is to hold cards for which the sum of numerical values is as large as possible without exceeding 21. All face cards (i.e., Jack, Queen, and King) count as 10 while an ace always counts as 1. The game begins with both dealer and player getting two cards each (all drawn cards are always shown to both players). Then, the player can draw additional cards, one by one (we say that the playerhits) until she/he either decides to stop (the playersticks) or exceeds 21 (the playergoes bust ). If the player goes bust, she/he loses; if she/he sticks, then it becomes the dealer’s turn. The dealer plays according to a fixed…

Anteprima

Prima pagina del documento.

Prima pagina: 15 01 2024 E TS