Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/roscibely/algorithms-and-data-structure

Repository for PEX1241|PET2033 Algorithms and Data Structure I subject/course on Information Technology - UFERSA
https://github.com/roscibely/algorithms-and-data-structure

algorithm algorithms c c-language c-programming-language collaborate data-structures educative github gitlens

Last synced: about 8 hours ago
JSON representation

Repository for PEX1241|PET2033 Algorithms and Data Structure I subject/course on Information Technology - UFERSA

Awesome Lists containing this project

README

        


# Algorithms and Data Structure
###### Professora: [Rosana Rego](https://github.com/roscibely)

### PEX1241 - Algoritmos e Estrutura de dados I
#### Bacharelado Interdisciplinar em Tecnologia da Informação - UFERSA

---
- Git e controle de versão: 🤜 [curso grátis](https://www.dataquest.io/course/git-and-vcs/)
- [Git cheat sheet](https://github.com/roscibely/algorithms-and-data-structure/blob/develop/root/github-git-cheat-sheet.pdf) :octocat:
---
#### Parte I
1. [Ponteiros](https://github.com/roscibely/algorithms-and-data-structure/tree/main/root/pointers)
2. [Alocação dinâmica](https://github.com/roscibely/algorithms-and-data-structure/blob/main/root/pointers/alocdinamic.md)
- 2.1 [Vetores](https://github.com/roscibely/algorithms-and-data-structure/tree/main/root/vectors)
- 2.2 [Matrizes](https://github.com/roscibely/algorithms-and-data-structure/tree/develop/root/matrices)
3. [Tipos Estruturados](https://github.com/roscibely/algorithms-and-data-structure/tree/main/root/estruturas)
- 3.1 [Vetores de Estruturas](https://github.com/roscibely/algorithms-and-data-structure/tree/main/root/estruturas/vetores-estruturados)
- 3.2 [Vetores de ponteiros para estruturas](https://github.com/roscibely/algorithms-and-data-structure/tree/develop/root/estruturas/vetores-de-ponteiros-de-struct)
- 3.3 [União](https://github.com/roscibely/algorithms-and-data-structure/tree/main/root/estruturas/union)
- 3.4 [Enumerações](https://github.com/roscibely/algorithms-and-data-structure/tree/main/root/estruturas/enum)
- [Exercícios](https://github.com/roscibely/algorithms-and-data-structure/blob/develop/root/questoes_revisao.md)
---
#### Parte II

1. [Arquivos](https://github.com/roscibely/algorithms-and-data-structure/tree/develop/root/arquivos)
2. [Tipos abstrato de dados](https://github.com/roscibely/algorithms-and-data-structure/tree/main/root/TAD)
3. [Complexidade de Algoritmos](https://github.com/roscibely/algorithms-and-data-structure/blob/develop/root/algoritmos-de-busca/time.md)
- 3.1 [Calculando o tempo de execução](https://github.com/roscibely/algorithms-and-data-structure/tree/develop/root/execution_time)
4. [Algoritmos de Busca](https://github.com/roscibely/algorithms-and-data-structure/tree/main/root/algoritmos-de-busca)
5. [Algoritmos de Ordenação](https://github.com/roscibely/algorithms-and-data-structure/tree/main/root/sort-algorithms)
---
#### Parte III

1. [Estrutura de dados: Lista](https://github.com/roscibely/algorithms-and-data-structure/tree/main/root/listas)
2. [Estrutura de dados: Pilha](https://github.com/roscibely/algorithms-and-data-structure/tree/main/root/pilha)
3. [Estrutura de dados: Fila](https://github.com/roscibely/algorithms-and-data-structure/tree/main/root/filas)
---
#### EXTRA
1. [Intereção por menu](https://github.com/roscibely/algorithms-and-data-structure/tree/develop/root/interecao%20por%20menus)
---
#### Quer aprender Python?
Comece [clicando aqui](https://github.com/roscibely/data-structure-with-python)

---

#### Especial

---

#### i) Compilando e executando programas em C no terminal do Linux

Com o terminal aberto, digite o comando abaixo para compilar o programa:
```bash
gcc nome_do_programa.c -o nome_do_programa
```
Para executar o programa, digite o comando abaixo:
```bash
./nome_do_programa
```
Para compilar e executar o programa em um único comando, digite o comando abaixo:
```bash
gcc nome_do_programa.c -o nome_do_programa && ./nome_do_programa
```
---

#### ii) Compilando e executando programas em C no terminal do Windows

Com o terminal aberto, digite o comando abaixo para compilar o programa:
```bash
gcc nome_do_programa.c -o nome_do_programa
```
Para executar o programa, digite o comando abaixo:
```bash
nome_do_programa
```
Para compilar e executar o programa em um único comando, digite o comando abaixo:
```bash
gcc nome_do_programa.c -o nome_do_programa && nome_do_programa
```

gcc é o compilador do C, ele compila o código fonte e gera um arquivo executável. O comando acima compila o arquivo ```nome_do_programa.c``` e gera um arquivo executável ```nome_do_programa```. O parâmetro ```-o nome_do_programa``` indica o nome do arquivo executável gerado. O parâmetro ```&&``` indica que o próximo comando só será executado se o comando anterior for executado com sucesso. O comando ```./nome_do_programa``` executa o arquivo executável ```nome_do_programa```.

### Debugger

Para compilar o programa com o debugger, digite o comando abaixo:
```bash
gcc -g nome_do_programa.c -o nome_do_programa
```
Para executar o programa com o debugger, digite o comando abaixo:
```bash
gdb nome_do_programa
```
Para compilar e executar o programa com o debugger em um único comando, digite o comando abaixo:
```bash
gcc -g nome_do_programa.c -o nome_do_programa && gdb nome_do_programa
```
Para executar o programa com o debugger, digite o comando abaixo:
```bash
gdb nome_do_programa
```

---




UFERSA - Campus Pau dos Ferros