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.

Parallélisme en programmation : Approches implicites et explicites

This document outlines the foundations of programming with a focus on parallelism. It discusses different programming paradigms, environments, and models essential for effective use of advanced computing performance. The document also highlights the balance between implicit and explicit approaches in parallel programming.

parall
lisme
biblioth
50p0
Parallelization Methodology in Computational Algorithms

The document discusses parallel processing methodologies for computational algorithms, focusing on task partitioning, dependency graphs (precedence graphs), and task scheduling. It introduces core concepts such as task granularity, precedence systems, and models for optimizing execution time (makespan). It further explores algorithmic complexity, cost analysis, and the challenges in achieving optimal performance on parallel architectures. Practical examples, theoretical models, and decomposition methods are presented to evaluate and minimize execution costs.

parallelization
precedence graph
parallel algorithm complexity
33p0
Algorithmes parallèles : principes et schémas de tâches

This document discusses the principles and methodologies of parallelization in algorithms. It covers task graphs, scheduling, and complexity within parallel computing. The document also explores how different decompositions of algorithms affect performance based on machine architecture.

ches
temps
graphe
33p0
Programmation avec R

This laboratory exercise aims to familiarize students with classical probability laws and their simulation using the R programming language. Participants will engage in generating random samples from vectors and simulating casino games. Various methods of sampling will be explored, enhancing understanding of probability distributions.

quot
face
sample
9p0
Calculs statistiques en R

Ce document fournit une introduction aux calculs statistiques en utilisant le langage R. Il couvre les statistiques descriptives, les distributions de probabilité et la génération de nombres pseudo-aléatoires. Des exemples pratiques et des fonctions clés sont présentés pour faciliter la compréhension.

quot
fonction
fonctions
17p0
Concepts de base en R

This document serves as an introductory guide to the R programming language, focused on basic concepts and functionalities. It explains the interactive nature of the R console, details how to store, access, and manage objects in memory, and highlights the structure of R functions, including the use of arguments. It introduces vectorized operations in R and delves into the utility of the '...' argument for handling variable input and passing arguments across functions.

R basics
assignment operators
vectorized functions
12p0
Concepts de base en R

This document serves as an introductory guide to the R programming language, outlining basic concepts such as the R console, memory operations, and functions. It provides explanations on how to define and access objects in memory as well as the importance of proper syntax in R. The content is structured to aid learners in grasping foundational programming concepts in R through practical examples.

quot
fonction
faut
12p0
Programmation avec R

This document serves as a detailed guide on the programming language and environment R, highlighting its applications in statistical analysis, data visualization, and report generation. It explains the installation procedures for R and RStudio across various operating systems, emphasizing the necessary tools for package development and LaTeX integration for PDF document creation. Strengths of R include its open-source nature and active community support, while limitations like memory management issues and slower performance for certain computations are noted. Additionally, the document cove...

R programming
install.packages
open-source software
6p0
Programmation avec R

This document provides an introduction to R, an open-source programming language for statistical computing and graphics. It covers installation, the R environment, and various functionalities, including data manipulation and graphical production. The document also discusses the advantages and limitations of R in research and education.

packages
install
logiciel
6p0
Modification des propriétés des variables

This document explores advanced techniques for modifying variable properties using SPSS software. It covers defining multiple variables, computation of new variables using formulas, class grouping, and data aggregation. Additionally, it delves into cross-tabulations, simple sorting, and correlation analysis to interpret survey data systematically. Practical exercises and associated Excel files are provided to support hands-on learning of variable matrix preparation and statistical representation.

SPSS
variable types
data aggregation
11p0
Pratiques avancées en analyse de données : création et manipulation de variables multiples avec SPSS

This document provides a detailed explanation of modifying variable properties in SPSS. It covers defining multiple variables, calculating new variables, and aggregating data. Additionally, the document includes practical activities for applying the concepts learned.

variables
variable
khlifi
11p0
Développement des Services Web REST avec Java : JAX-RS

This document explores RESTful web services development using Java and the JAX-RS specification. It examines implementation frameworks, including Jersey, CXF, Spring REST, RESTEasy, and RESTlet, detailing their comparative performance. The methodology focuses on annotation-based Java class configuration, eliminating extensive configuration files. It includes step-by-step examples of REST service development, emphasizing client-server interactions through HTTP methods such as GET and POST.

RESTful Web Services
JAX-RS
Java EE
23p0
Une première version: ID3 - Les arbres de décisions

The document explains the ID3 decision tree algorithm developed by Ross Quinlan, showcasing its methodology with the 'playTennis' example. It illustrates entropy and information gain as the metrics for selecting the most relevant attributes to minimize disorder in the dataset. The tutorial provides a step-by-step approach to calculating entropy, choosing attributes recursively, and designing an optimized decision tree. Finally, it discusses the pseudo-code for implementing the ID3 algorithm and its applicability to solving classification problems.

ID3
Entropy
Shannon
24p0
Apprenez à programmer en Python

This document is an introductory guide to programming in Python, covering foundational concepts such as variable usage, data types, conditional structures, loops, functions, and modules. It begins with an overview of Python as a programming language, its use cases, setup instructions for different operating systems, and basic operations. Gradually, it introduces more advanced features like functions, lambda expressions, and modularity. The text also provides practical examples and step-by-step instructions to help beginners grasp Python programming effectively.

Python
variables
data types
266p0
TP2: Mini Projet - Programmation Avancée sous Python

This document consists of two key activities focusing on advanced Python programming concepts. The first activity leverages decision trees for regression analysis, involving the creation and visualization of predictive tree models using libraries like numpy, matplotlib, and sklearn. The second activity introduces linear regression, emphasizing model training and prediction using scikit-learn while highlighting data preprocessing and differences upon modifying certain code aspects. Both activities employ practical examples to foster understanding, featuring visualization outputs and file gen...

decision tree
linear regression
numpy
4p0
TP1: Activité sous Spyder de Anaconda

This document outlines a Python-based activity executed in the Spyder IDE provided by the Anaconda distribution. The activity involves importing a dataset, manipulating directories, performing basic descriptive statistics, and visualizing pairwise variable relationships in the data. Key steps include importing necessary libraries like pandas, using functions to compute data dimensions and descriptive statistics, and generating scatter plot matrices for visual exploration.

Python
Pandas
Spyder IDE
2p0
Éléments Fondamentaux des Diagrammes de Classes et Diagrammes Objets

Ce document traite des concepts fondamentaux concernant les diagrammes de classes et d'objets dans la modélisation orientée objet, en utilisant les notations UML. Les méthodologies et principes incluent l'abstraction, l'encapsulation, les relations (associations, agrégations, composition), la généralisation, et la spécialisation. Des exemples pratiques sont fournis pour modéliser des structures et relations complexes dans divers scénarios. La documentation détaille également les aspects syntaxiques, comme la distinction entre attributs d'instance et de classe, visibilité, héritage multiple...

UML
encapsulation
diagramme de classe
54p0
Workshop AsyncTask

This document explains how to use AsyncTask in Android development for asynchronous processing, avoiding UI thread blocking issues. The methodology involves implementing a loop with 1,000,000 iterations using AsyncTask, ensuring resource-demanding operations run in a separate thread. Procedures include extending and completing the AsyncTask class, using generics for task parameters, progress data, and result types. The document emphasizes the role of key methods like doInBackground for execution, publishProgress for updates, and onPreExecute/onPostExecute for UI thread-safe operations.

AsyncTask
doInBackground
Thread
3p0
Simulation Numérique

This document covers the usage of the numpy library in Python for numerical simulations. It introduces vector creation, manipulation, and mathematical operations using numpy. The document also compares numpy with the standard math library in terms of array handling and functionality.

array
matrice
numpy
17p0
Network Protocols and Socket Programming

The document provides a comprehensive overview of socket programming concepts in system-level programming. It details the use of various functions such as socket(), send(), recv(), and bind() for communication through network protocols. Key concepts include address structures like sockaddr and sockaddr_in, along with IPv4/IPv6 family specifics. The manual focuses on practical implementation and includes examples of filling addresses and binding sockets for reliable communication.

socket programming
struct sockaddr
AF_INET6
FST1p0
Introduction to C# and .NET Framework

This document provides a comprehensive overview of the C# programming language and its integration with the .NET Framework. It outlines the compilation process transforming C# code into intermediate language (CIL), which is executed by the CLR. Key object-oriented programming concepts like classes, inheritance, and polymorphism are explained, alongside fundamental type management, exception handling, and advanced features like anonymous types, LINQ, and lambda expressions. Methodologies to extend types and techniques for data querying and transformation with LINQ are covered, emphasizing fl...

C#
.NET Framework
Object-Oriented Programming
17p0
C# Programming Introduction

This document provides an introduction to C# programming, focusing on its role in developing applications with .NET. It explains the compilation process into an intermediate language (CIL) and discusses the concepts of assemblies, classes, inheritance, and polymorphism in object-oriented programming. The document serves as a foundational guide for understanding key principles and practices in C# programming.

classe
type
donn
17p0
Problèmes de cheminement - Algorithme de Dijkstra

This document provides an overview of pathfinding problems in graph theory, with a focus on algorithms for finding the shortest path. The Dijkstra algorithm is analyzed, detailing its principles, initialization, and iterative steps to mark nodes, update distances, and track predecessors. An example application of the algorithm is presented with step-by-step calculations. The document includes definitions related to path weights, graph traversal, and problem-solving for classical graph theory cases.

shortest path
Dijkstra algorithm
graph theory
13p0
Théorie des graphes - Algorithmes de parcours d’un graphe

This document discusses graph traversal algorithms including Breadth-First Search (BFS), with detailed pseudo-code and examples. BFS is used to determine various graph properties such as connectivity and shortest paths from a source node in unweighted graphs. The methodology simulates message transmission between graph nodes and explains exploration through marking adjacent nodes during traversal. Exercises demonstrate BFS starting from different nodes, showcasing its application in specific graph structures.

Breadth-First Search (BFS)
algorithm pseudo-code
graph connectivity
9p0

Autres ressources en programmation