Skip to content

Commit f9006b8

Browse files
committed
Update
1 parent 7fc0373 commit f9006b8

File tree

69 files changed

+367
-316
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+367
-316
lines changed

_posts/en/computer-science/data-science/2023-05-15-ai-resource-1.md renamed to _posts/en/computer-science/artificial-intelligence/2023-05-15-ai-resource-1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: post
33
lang: en
44
title: "Explore the World of Artificial Intelligence"
55
excerpt: "Five Websites to Boost Your Productivity and Creativity"
6-
category: data-science
6+
category: artificial-intelligence
77
date: 2023-05-15 05:45:33
88
tags: [English,Artificial Intelligence]
99
comments: true
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
layout: post
3+
lang: en
4+
title: "Introduction to Machine Learning"
5+
excerpt: "Machine learning is a powerful technology that allows computers to learn from data without being explicitly programmed. It is used in a wide range of applications, including image recognition, text classification, and event prediction"
6+
category: artificial-intelligence
7+
date: 2014-09-23 22:45:33
8+
tags: [English,"Machine Learning"]
9+
comments: true
10+
share: true
11+
---
12+
13+
14+
15+
Machine learning is a branch of artificial intelligence that deals with the development of algorithms that can learn from data without being explicitly programmed. In other words, machine learning allows computers to learn from information without being provided with precise instructions.
16+
17+
Machine learning is a powerful technology that can be used to solve a wide range of problems, including:
18+
19+
* Image and video recognition
20+
* Text classification
21+
* Event prediction
22+
* Information retrieval
23+
* System control
24+
25+
There are different types of machine learning algorithms, each with its own characteristics and strengths. The most common types of machine learning algorithms include:
26+
27+
* Supervised learning, in which the algorithm is trained on a dataset of input and output examples.
28+
* Unsupervised learning, in which the algorithm is trained on a dataset of input examples without output.
29+
* Semi-supervised learning, in which the algorithm is trained on a dataset of input and output examples, but only a portion of the examples have output.
30+
31+
Machine learning is based on a variety of mathematical tools, including:
32+
33+
* Statistics
34+
* Probability
35+
* Calculus
36+
* Data science
37+
38+
Machine learning is a rapidly evolving technology, with new algorithms and techniques being developed constantly. Machine learning is having a significant impact on a wide range of industries, including healthcare, finance, education, and manufacturing.
39+
40+
Some examples of machine learning applications
41+
42+
Here are some examples of machine learning applications:
43+
44+
* Facial recognition, used to unlock mobile phones, access computer systems, and identify people in images.
45+
* Speech recognition, used to control electronic devices, translate languages, and answer questions.
46+
* Image classification, used to organize images into categories, such as landscapes, animals, or people.
47+
* Sales forecasting, used by businesses to forecast demand for products and services.
48+
* Drone control, used to fly drones safely and efficiently.
49+
50+
Machine learning is a powerful technology that has the potential to improve our lives in many ways.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
layout: post
3+
lang: en
4+
title: "Generic visit algorithm for a tree"
5+
excerpt: ""
6+
category: data-structures-and-algorithms
7+
date: 2014-10-10 22:45:33
8+
tags: [English,"Data Structures","Algorithms"]
9+
comments: true
10+
share: true
11+
---
12+
13+
One of the most common tasks to be performed on a tree is to perform a visit to it, i.e. to review each of its nodes. By the natural language term 'reviewing' we mean 'applying some function' to the node under examination, even if it is simply printing on the screen that it has been visited.
14+
15+
The most generic possible visiting procedure can be seen in the pseudocode algorithm below
16+
17+
```
18+
proc generic_tree_visit(node r)
19+
S ← { r }
20+
while S ≠ ∅ do
21+
u ← get node from S
22+
visit(u)
23+
S ← S ∪ { children of u}
24+
od
25+
end proc
26+
```
27+
28+
the algorithm keeps instant by instant in `S` the nodes representing the branch points left over and from which the visit must continue, we say that these nodes are open and form a fringe of the tree, a node becomes closed when it is removed from `S`.
29+
30+
Concerning costs in terms of space occupied in memory and time for execution we have the following theorem.
31+
32+
Theorem: The generic visiting algorithm applied to the root of a tree with n n nodes terminates in `O(n)` iterations, and the space used is `O(n)`.
33+
34+
This is self-evident in itself and is formally provable. Demonstrating it is beyond the scope of this post, which is only to lay the foundations for subsequent posts which explore the theoretical and practical aspects in more detail.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
layout: post
3+
lang: en
4+
title: "DFS o Depth First Search"
5+
excerpt: ""
6+
category: data-structures-and-algorithms
7+
date: 2014-10-12 22:45:33
8+
tags: [English,"Data Structures","Algorithms"]
9+
comments: true
10+
share: true
11+
---
12+
13+
14+
15+
Starting from the generic algorithm shown and using a Stack/Stack to represent `S`, we obtain the depth first search (or DFS)
16+
17+
```
18+
procedure DFS(node r)
19+
Stack S
20+
S.push(r)
21+
while not S.isEmpty() do
22+
u ← S.pop()
23+
if u ≠ null then
24+
visit(u)
25+
S.push(right_child_of(u))
26+
S.push(left_child_of(u))
27+
fi
28+
od
29+
end
30+
```
31+
32+
in a visit in depth we continue the visit from the last node left over
33+
since we stack first the right-hand child of each node and then the left-hand child we tend to follow all the left-hand children going deep until the first left-hand leaf is reached in general we will only visit each right-hand subtree in a node when the left-hand subtree has been visited altogether
34+
35+
36+
By reversing the order in which we add the children we have the symmetrical variant
37+
38+
The recursive deep-visit version shown below is much more elegant:
39+
the stack does not appear explicitly in the algorithm as it is the stack of records for activating recursive calls to keep nodes open.
40+
41+
There are the obvious variations if we alter the order of the visit and child addition instructions in the S-stack.
42+
* preorder visit = we visit the root first then left child and then right child
43+
* symmetrical visit = left first,then root and then right
44+
* visit in post order = first left,then right and finally root
45+
46+
```
47+
-- DFS recursive visit
48+
procedure DFS(node r)
49+
if r = null then return
50+
visit(u)
51+
DFS(left_child_of(r))
52+
DFS(right_child_of(r))
53+
end
54+
```

_posts/it/computer-science/2014-10-14-breadth-first-search-tree.md renamed to _posts/en/computer-science/data-structures-and-algorithms/2014-10-14-breadth-first-search-tree.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
---
22
layout: post
3-
lang: it
4-
title: "Algoritmo di visita in ampiezza per un albero (BFS o Breadth First Search)"
3+
lang: en
4+
title: "BFS Breadth First Search"
55
excerpt: ""
6-
category: "Computer Science"
6+
category: data-structures-and-algorithms
77
date: 2014-10-14 22:45:33
8-
tags: [Italian,"Data Structures","Algorithms"]
8+
tags: [English,"Algorithms"]
99
comments: true
1010
share: true
1111
---
1212

1313
> "PHP is a minor evil perpetrated and created by incompetent amateurs, whereas Perl is a great and insidious evil perpetrated by skilled but perverted professionals."
1414
(Jon Ribbens)
1515

16-
Partiamo dal algoritmo di generico di visita e usando una coda per rappresentare `S` otteniamo visita in ampiezza (Breadth First Search o BFS).
16+
We start with the generic visitation algorithm and using a queue to represent `S` we obtain breadth-first visitation (Breadth First Search or BFS).
1717

18-
I nodi vengono visitati per livelli,prima radice,poi figli della radice,poi i figli dei figli.
18+
Nodes are visited by levels, first root, then children of the root, then children of the children.
1919

20-
```java
21-
proc BFS(nodo r)
20+
```
21+
proc BFS(node r)
2222
Queue C
2323
C.enqueue(r)
2424
while not C.isEmpty() do
@@ -29,5 +29,5 @@ proc BFS(nodo r)
2929
C.enqueue(right_child_of(u))
3030
fi
3131
od
32-
endproc
33-
```
32+
end proc
33+
```

_posts/en/computer-science/databases/2010-01-01-mysql-a-problem-when-restoring-a-mysql-database.md renamed to _posts/en/computer-science/databases/mysql/2010-01-01-mysql-a-problem-when-restoring-a-mysql-database.md

File renamed without changes.

_posts/en/computer-science/databases/2010-02-03-mysql-how-to-install-on-ubuntu-linux-mysql-without-synaptic-or-apt.md renamed to _posts/en/computer-science/databases/mysql/2010-02-03-mysql-how-to-install-on-ubuntu-linux-mysql-without-synaptic-or-apt.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ date: 2011-02-03 22:45:33
88
tags: [English,MySQL]
99
comments: true
1010
share: true
11-
permalink: /databases/mysql/2
1211
---
1312
We download the tar.gz from the mysql site www.mysql.com
1413
place it in /usr/local unpack the tar.gz with the command

_posts/en/computer-science/databases/2011-01-01-mysql-mysqldump-speed-up-restore.md renamed to _posts/en/computer-science/databases/mysql/2011-01-01-mysql-mysqldump-speed-up-restore.md

File renamed without changes.

_posts/en/computer-science/databases/2017-05-02-mysql-illegal-mix-of-collations-for-operation-union.md renamed to _posts/en/computer-science/databases/mysql/2017-05-02-mysql-illegal-mix-of-collations-for-operation-union.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ modified: 2017-05-03 22:45:33
99
tags: [English,MySQL]
1010
comments: true
1111
share: true
12-
permalink: /databases/mysql/3
1312
---
1413
Well, you probably have different collations in some mysql views, try to force collation like this
1514
```sql

_posts/en/computer-science/data-science/2023-05-06-databookmodel-1-2.md renamed to _posts/en/computer-science/information-systems/data-engineering/2023-05-06-databookmodel-1-2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ layout: post
33
lang: en
44
title: "The Data Model Resource Book Vol 1 & 2"
55
excerpt: "About the series book..."
6-
category: data-science
6+
category: data-engineering
77
date: 2023-05-06 05:11:55
88
modified: 2023-05-13 05:11:55
9-
tags: [English,"Data Science","Data Engineering"]
9+
tags: [English,"Data Engineering"]
1010
comments: true
1111
share: true
1212
updated: true

0 commit comments

Comments
 (0)