Compare commits

...

20 Commits
master ... bac2

Author SHA1 Message Date
40cd963202
uml 2024-01-21 16:40:11 +01:00
d2ffcf8c9a
Synthèse os 2024-01-18 15:46:08 +01:00
a66a649b48 exam modal dev aout 2023 2024-01-14 10:00:35 +01:00
Debucquoy
df9e43e534
chap4 2023-12-21 23:39:21 +01:00
Debucquoy
babed7eb09
chap3 2023-12-21 23:36:03 +01:00
Debucquoy
990b77ed18
Adding reference to the uml 2.0 reference 2023-11-21 15:40:17 +01:00
Debucquoy
025b0e2166
useCase prototype 2023-11-20 19:11:26 +01:00
Debucquoy
c4e193e45f
use case diagram 2023-11-17 16:10:39 +01:00
Debucquoy
3b2f4c84d7
Merge remote-tracking branch 'refs/remotes/origin/bac2' into bac2 2023-11-08 09:43:08 +01:00
Debucquoy
58acfde2b4
chap3 2023-11-08 09:42:46 +01:00
dabb46879d
. 2023-10-24 20:28:37 +02:00
0424fbcca6
. 2023-10-24 20:25:22 +02:00
Debucquoy
dfe4fd3729
exo 1 + pgl 2023-10-24 15:48:13 +02:00
Debucquoy
2649bc9a54
Group project
Alone because I have not friend haha (jk)
2023-10-24 12:19:02 +02:00
Debucquoy
d35439f7d3
. 2023-10-24 10:40:15 +02:00
5a7048a0a4
removing ex<num> bin files 2023-10-18 20:47:38 +02:00
d5ca967c0c
remove bin 2023-10-18 20:33:56 +02:00
Debucquoy
b0f02b0d5d
. 2023-10-18 20:27:40 +02:00
Debucquoy
4de4dcf2c2
adding latex 2023-09-21 08:24:22 +02:00
Debucquoy
4fd7542f03
. 2023-09-20 15:18:20 +02:00
372 changed files with 16358 additions and 12 deletions

13
.gitignore vendored
View File

@ -1,3 +1,16 @@
__pycache__/
*.tar
*.class
*.toc
*.synctex.gz
*.snm
*.out
*.aux
*.fbd_latexmk
*.fls
*.log
*.nav
*.fdb_latexmk
a.out
*.o
ex[0-9]

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "bac2/latex/beamer-umons"]
path = bac2/latex/beamer-umons
url = git@github.com:Chris00/beamer-umons

View File

Before

Width:  |  Height:  |  Size: 256 KiB

After

Width:  |  Height:  |  Size: 256 KiB

View File

Before

Width:  |  Height:  |  Size: 321 KiB

After

Width:  |  Height:  |  Size: 321 KiB

View File

Before

Width:  |  Height:  |  Size: 261 KiB

After

Width:  |  Height:  |  Size: 261 KiB

View File

Before

Width:  |  Height:  |  Size: 790 KiB

After

Width:  |  Height:  |  Size: 790 KiB

View File

Before

Width:  |  Height:  |  Size: 727 KiB

After

Width:  |  Height:  |  Size: 727 KiB

View File

Before

Width:  |  Height:  |  Size: 161 KiB

After

Width:  |  Height:  |  Size: 161 KiB

View File

Before

Width:  |  Height:  |  Size: 186 KiB

After

Width:  |  Height:  |  Size: 186 KiB

View File

Before

Width:  |  Height:  |  Size: 172 KiB

After

Width:  |  Height:  |  Size: 172 KiB

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="MarkdownSettingsMigration">
<option name="stateVersion" value="1" />
</component>
<component name="ProjectRootManager" version="2" project-jdk-name="20" project-jdk-type="JavaSDK" />
</project>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/algo.iml" filepath="$PROJECT_DIR$/.idea/algo.iml" />
</modules>
</component>
</project>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
</component>
</project>

View File

@ -1,32 +1,29 @@
public class hashmap implements Map{
public static final TAB_SIZE = 1024;
Object[] values = new Object[TAB_SIZE];
class tuple{ public Object key, values;
public tuple(Object key, Object value){
LinkedList[] values = new Object[TAB_SIZE];
class HashEntry{ public Object key, values;
public HashEntry(Object key, Object value){
this.key = key;
this.value = value;
}
}
public hashmap() {
}
public void put(Object key, Object value){
int pos = key.hashCode() % values.lenght();
if (values[pos] == null){
values[pos] = value;
return;
}
if(value[pos] instanceof ArrayList<tuple> t){
t.add(new tuple(key, value));
if(value[pos] instanceof ArrayList<HashEntry> t){
t.add(new HashEntry(key, value));
return;
}
Object temp = values[pos];
values[pos] = new ArrayList<tuple>;
values[pos] = new ArrayList<HashEntry>;
value[pos].add(temp);
value[pos].add(new tuple(key, value));
value[pos].add(new HashEntry(key, value));
}
public Object get(Object key){
@ -34,7 +31,7 @@ public class hashmap implements Map{
if(values[pos].equals(key)){
return values[pos].value;
}
if(values[pos] instanceof ArrayList<tuple> t){
if(values[pos] instanceof ArrayList<HashEntry> t){
for (v : t) {
if (v.key.equals(key)){
return v.value
@ -44,5 +41,9 @@ public class hashmap implements Map{
return null;
}
}
public static void main(String[] args) {
System.out.println("test");
}
}

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="MarkdownSettingsMigration">
<option name="stateVersion" value="1" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_X" default="true" project-jdk-name="20" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/hashmap.iml" filepath="$PROJECT_DIR$/hashmap.iml" />
</modules>
</component>
</project>

View File

@ -0,0 +1,36 @@
import java.util.Iterator;
import java.util.LinkedList;
public class HashMap {
LinkedList<HashEntry>[] tab;
Iterator iter;
class HashEntry{
public Object key, value;
}
class MyHashMapIterator implements Iterator{
int i;
public MyHashMapIterator(){
while(i<tab.length){
if(tab[i] == null)
continue;
return;
}
}
@Override
public boolean hasNext() {
if(i >= tab.length)
return false;
}
@Override
public Object next() {
}
}
public static void main(String[] args) {
}
}

Some files were not shown because too many files have changed in this diff Show More