Programmation

670 documents à télécharger gratuitement

Cours, examens, TD, TP et exercices de programmation. Thèmes couverts : algorithmique, langage C, Java, Python, POO, structures de données.

Introduction to Parallel Programming using MPI and OpenMP

This document explores parallel programming methodologies using two APIs: MPI and OpenMP. MPI focuses on distributed memory paradigms, allowing separate processes with individual memory spaces to communicate, while OpenMP centers around shared memory with threads operating within a single process. Practical examples and step-by-step instructions for implementing various algorithms, such as matrix-vector multiplication, array summation, and Pascal's Triangle computation, are provided. The document also offers installation guidelines, compilation commands, and best practices for hybrid progra...

Parallel programming
MPI
OpenMP
3p0
Programmation parallèle

This document outlines the objectives and methods for programming parallel machines using C or C++, focusing on two APIs: MPI and OpenMP. It discusses the differences and complementary nature of these APIs, including the paradigms of distributed and shared memory. The document also provides installation guidance and examples of various programs to illustrate their usage.

programme
processus
programmes
3p0
Recherche Opérationnelle - Séries d'exercices sur Programmation Linéaire

This document consists of five linear programming exercises designed to address optimization challenges in various contexts. Exercise 1 evaluates the production maximization of three products utilizing available machine hours. Exercise 2 explores creating an optimal cattle feed mix with cost and nutrient constraints. Exercise 3 focuses on workforce optimization for airline ground staff while balancing costs and coverage. Exercise 4 tackles maximizing net revenue by optimizing chocolate assortments, and Exercise 5 involves maximizing the net revenue of a factory producing and transporting tw...

linear programming
profit maximization
optimization constraints
3p0
Cours de Systèmes Répartis: Partie 1 - Algorithmique Répartie

This document provides a foundational study on distributed systems, emphasizing algorithmic principles and theoretical models. It delves into the challenges these systems face, including asynchrony, dynamism, and scalability. Key topics covered include safety and liveness properties, the role of logical, vector, and matrix clocks in ensuring causal consistency, and techniques for observing and maintaining system state in the absence of global clocks and shared memory. Notable solutions proposed include Lamport's Logical Clocks and Vector Clocks, which address causal ordering and event synch...

Distributed systems
Lamport logical clocks
Causal consistency
88p0
Initiation à la Programmation Python

This document presents an activity related to the Python programming module. It prompts students to identify a concept introduced in a video that is not covered in the course PDF. Additionally, students are tasked with writing a program to calculate the length of a string using the identified concept.

notion
annonce
cette
1p0
MASTER BADS INITIATION A LA PROGRAMMATION PYTHON

This document presents an activity aimed at calculating the potential roots of a quadratic equation. It explains the quadratic equation formula and the conditions for determining the number of real roots based on the discriminant. The activity includes calculations and scenarios based on the value of the discriminant.

delta
quation
racines
2p0
APACHE PIG

Apache Pig is a high-level platform for MapReduce programming used with Hadoop. It offers a language called Pig Latin, which simplifies the programming model compared to Java MapReduce, similar to SQL for relational databases. Pig Latin is extensible through User Defined Functions and supports parallel execution in distributed systems.

group
user
city
62p0
Initiation à la programmation Python

The document is a comprehensive guide to Python programming focusing on modules, Tkinter for graphical interfaces, and numerical computations with Numpy. It emphasizes the reusability and organization of code using modules, and demonstrates how to create GUIs step-by-step using Tkinter. In addition, it discusses the incorporation of common Python modules, such as math, os, and pandas, for specialized purposes. Practical examples and coding snippets are provided to facilitate understanding and application of the concepts.

modules
Numpy
Tkinter
66p0
Initiation à la programmation python

This online session introduces Python programming with a focus on modules, graphical interfaces using tkinter, and the Numpy module. It covers the definition and advantages of modules, how to import external modules, create custom modules, and introduces some common Python modules. The session aims to provide foundational knowledge essential for further programming studies.

quot
tkinter
texte
66p0
Task Allocation Using 6 Algorithms

The document outlines the allocation of 10 tasks, each with specific costs, across three processors with varied speeds. It requires the application of six studied algorithms to perform the allocation efficiently and compares the results. The methodology includes calculating task distributions while accounting for processor speeds and task costs. Findings aim to show the effectiveness and performance differences between the algorithms.

task allocation
processor speeds
algorithm comparison
1p0
Manipulation de fichiers texte et données dans R

Ce document détaille les approches pour lire, manipuler et exporter des fichiers texte dans le langage R. Il présente diverses méthodes telles que readLines() et scan() pour importer des fichiers, ainsi que des fonctions pour la manipulation de chaînes comme nchar() et substr(). Les techniques d'exportation de données vers différents formats comme .txt, .csv, .xlsx et .RData sont également expliquées. Enfin, il introduit l'utilisation de bibliothèques externes comme xlsx pour l'exportation avancée.

R programming
readLines()
file manipulation
4p0
TP8

This document covers various operations regarding text file handling in R, specifically focusing on reading, writing, and processing text data. A dataset called The_Artist.txt is used for practical examples throughout the module. It includes methods for reading text files and manipulating string data.

nous
quot
fichier
4p0
TP7

This document covers the importation and reading of CSV and Excel files in R. It provides practical examples of downloading data and loading it into R. Key functions and libraries needed for processing these file types are discussed.

quot
donne
nous
3p0
TP5

This document explains the concept of functions in programming, specifically in R. It covers predefined functions, user-defined functions, and various aspects such as argument defaults and conditional statements. Additionally, it discusses how to return explicit results from user-defined functions.

quot
fonction
rating
4p0
Encapsulation et concepts de POO

This document is a programming lab report focused on implementing the concept of encapsulation in Java through the modeling of bank accounts. It outlines the required class structure, including attributes like account number, account holder details, and balance, with rules on operations such as crediting, debiting, and transfers. Key constraints include fixed account identifiers, balance limits based on overdraft and debit restrictions, and the use of private attributes with access through getters and setters. It concludes with detailed method definitions for account management and testing...

Encapsulation
Constructors
Accessors and Modifiers
4p0
Problème inverse d’EEG : TP3 - Analyse de performances et comparaison des algorithmes étudiés

This document discusses the evaluation of performance for inverse algorithms in EEG data analysis. It emphasizes the importance of having a ground truth and a defined evaluation criterion to assess the algorithms' effectiveness quantitatively. The focus is placed on comparing the active dipoles from original configurations with those estimated by algorithms such as Gibbs sampler, MNE, and SISSY through various simulations.

dipˆoles
algorithmes
bruit
3p0
Exercises on Algorithms and Data Structures

The document provides a series of algorithmic exercises aimed at applying principles of structured programming for beginners. Key tasks include implementing pseudocode for decision-making (Tarifs, BMI), loop-based computations (minimum finding, factorial, mean calculations), and complex conditional structures (triangle identification, absolute values). Corrections for each exercise demonstrate step-by-step solutions using standard pseudocode formats to ensure clear understanding and execution.

algorithm design
programming logic
pseudocode structure
13p0
Algorithmique et Programmation I - Séance 5

This document outlines programming fundamentals using the C language, focusing on control structures like loops (for, while, do-while). It introduces calculation techniques for tasks like computing averages for students, both for known and unknown group sizes, and emphasizes loop control to handle infinite loops effectively. Additionally, it illustrates examples to show optimal use of loops in various scenarios, concluding with key programming constructs such as conditional statements and iterative structures.

algorithmique
C programming
loops
25p0
Atelier de Programmation I - Séance 4

This document serves as a workshop guide focusing on iteration in programming, specifically the 'for loop' in C language. It outlines different types of loops (for, while, repeat), details the structure and methodology of the 'for loop', and provides practical programming exercises with explanations of common errors and their corrections. The document concludes with assignment tasks, encouraging learners' hands-on practice in programming concepts including alphabet generation and summation algorithms.

iteration
for loop
loop programming structure
17p0
Structures conditionnelles

This document explores conditional structures in programming, emphasizing their importance in enabling complex logic and decisions. It introduces the 'if', 'if-else', 'if-else-if ladders', and 'switch' structures with syntax breakdowns and practical examples in C programming. Examples include testing conditions to display maximum numbers and creating menus using switch cases. Key programming principles like initializing variables and avoiding mistakes such as missing 'break' statements are also addressed.

conditional structures
if-else
switch
13p0
Les Tableaux

This document introduces fundamental concepts and problem-solving steps with 1D and 2D arrays. It defines arrays as data structures of fixed-size holding elements of the same type, discusses their declaration in programming languages, and explains key operations, including reading values, summing elements, and counting specific values. Examples are provided, such as calculating the sum of array elements, counting null elements, and determining the number of scores exceeding the class average. A banking transaction exercise with account updates is also included.

arrays
T[i]
data structure theory
13p0
Les Structures itératives

This document focuses on iterative structures in programming, specifically the 'While' and 'Repeat Until' loops. It details their syntax, functionality, and provides examples like calculating factorials and divisors to showcase usage. It explains the difference between iterative structures and discusses nested loops, their design considerations, and examples like computing averages. Lastly, it includes programming exercises such as finding perfect numbers and calculating the greatest common divisor using algorithms.

While loop
Repeat Until loop
Factorial calculation
20p0
Les Structures itératives

This document introduces and elaborates on iterative structures in programming, specifically the 'POUR…FAIRE', 'TANT QUE…FAIRE', and 'REPETER…JUSQU’A' loops. It outlines their syntax, principles, and use cases, such as looping through defined ranges or based on conditions. Several examples and exercises are provided to demonstrate practical applications, including algorithms to handle iterations, mathematical calculations, and common programming tasks. The document concludes with exercises to solidify the understanding of iterative loop structures.

ITERATIVE STRUCTURES
LOOPS
POUR...FAIRE
9p0
Structures Décisionnelles

This document provides an in-depth explanation of conditional structures in programming, including single and multiple choice branching. It discusses nested conditionals, logical operators, and examples to solve problems such as finding the greater value and applying discounts based on conditions. Additionally, it introduces advanced branching techniques for multi-value expression evaluation and outlines algorithms for problems such as date computation and traffic light responses.

conditional structure
algorithm
logical operator
11p0

Autres ressources en programmation