Archives, data structures and
visualization
Francisco Restivo
frestivo@ucp.pt
slideshare.net/frestivo
favinks.com/board/FranciscoRestivo
Agradecimento
•
Agradeço o convite e a vossa presença
•
Gosto destes diálogos
•
Perguntem, interrompam, não deixem
dúvidas persistir
•
O professor aprende sempre...
2
Escola das Artes 2022
Avisos prévios (1/2)
•
A minha área é Informática, ou seja,
Informação automática
•
No fundo, trata-se de ensinar máquinas a
resolver problemas
•
Interessam-me problemas de
Dados → Informação → Conhecimento
•
Vejam-me como um tradutor...
3
Escola das Artes 2022
Avisos prévios (2/2)
•
Um edifício informático escapa aos
olhares de quase toda a gente
•
Há deficiências invisíveis
•
O cliente normalmente não tem
competência para avaliar o produto...
•
Há muitos exemplos de soluções falhadas
4
Escola das Artes 2022
About me
5
Escola das Artes 2022
Lic. EE (6 anos) D.Phil. Prof. Assoc. Director Prof. Assoc
Signals DSP Multiprocessor systems Biomedical Systems Complex systems
Manufacturing systems Multi-agent systems Social systems Networks
Lic. EE (6 anos) D.Phil. Prof. Assoc. Director Prof. Assoc
Lic. EE (6 anos) D.Phil. Prof. Assoc. Director Prof. Assoc.
1970
IBM PC 1981
6
Escola das Artes 2022
Internet timeline
7
Escola das Artes 2022
Where are we?
•
The explosion of Big Data
•
Networks everywhere
•
Social Networks
•
Technologies
•
Tools
•
Projects
•
Digitization
8
Escola das Artes 2022
9
Escola das Artes 2022
An Internet minute
And heritage!
•
Documents
•
Pictures, etc
•
Digitized?
•
A quick tour
10
Escola das Artes 2022
A quick tour
•
Some projects
•
Basic ideas
•
How does a 'data scientist' think?
•
Digital Humanities
11
Escola das Artes 2022
12
Escola das Artes 2022
slideshare.net/frestvo
13
Escola das Artes 2022
htp://www.martngrandjean.ch/
14
Escola das Artes 2022
15
Escola das Artes 2022
16
Escola das Artes 2022
17
Escola das Artes 2022
18
Escola das Artes 2022
htps://www.familysearch.org/
19
Escola das Artes 2022
20
Escola das Artes 2022
21
Escola das Artes 2022
22
Escola das Artes 2022
Challenges and opportunities
•
Existing data and changing management
•
Data discovery, access and reuse
•
Digital skills
•
There is an enormous potential in the
network approach
23
Escola das Artes 2022
Data science approach
•
Regularities
•
Correlations
•
Causality
•
Relations/networks/distances
•
Co-occurrences
•
Deep learning, etc
24
Escola das Artes 2022
Escola das Artes 2022 25
Questions?
The plan for today
•
A realistic plan
– Part 1: some work hands on with real
data
– Part 2: very basic ideas on data
structures and networks
•
Please feel free to question, interrupt,
etc
26
Escola das Artes 2022
Part 1
27
Escola das Artes 2022
Characters, Les Misérables
28
Escola das Artes 2022
29
Escola das Artes 2022
Co-authors, in a Department
30
Escola das Artes 2022
Datasets
Escola das Artes 2022 31
Where to obtain?
•
Make or get!
•
Usually, we know
our subject
•
There are many
sites you can visit
– kaggle
– data.world
32
Escola das Artes 2022
Escola das Artes 2022 33
polsys.net
MARO musical universe
34
Escola das Artes 2022
My FB, Lost Circles
35
Escola das Artes 2022
36
Escola das Artes 2022
37
Escola das Artes 2022
Limits?
•
Property of data
•
Privacy
•
Business
Escola das Artes 2022 38
Tools
Escola das Artes 2022 39
40
Escola das Artes 2022
41
Escola das Artes 2022
42
Escola das Artes 2022
43
Escola das Artes 2022
People
44
Escola das Artes 2022
Escola das Artes 2022 45
Escola das Artes 2022 46
Escola das Artes 2022 47
Books
48
Escola das Artes 2022
Escola das Artes 2022 49
Escola das Artes 2022 50
Questions?
Part 2
51
Escola das Artes 2022
Computer programs
•
Algorithms + Data Structures
•
Many programming language (your choice)
•
Programming is a communication task
– Shared concepts
– Well defined actions
52
Escola das Artes 2022
Data structures
•
Lists
•
Stacks
•
Queues
•
Linked lists
•
Trees
•
Graphs
– Objects + attributes + relations
53
Escola das Artes 2022
Databases
•
Dataframes
•
Relational databases
•
Graph databases
54
Escola das Artes 2022
Graph database
55
Escola das Artes 2022
htps://neo4j.com/
Algorithms
•
Sort
•
Search
•
Insert/delete
•
Data analysis, data mining, etc
•
Graph algorithms
56
Escola das Artes 2022
Networks
•
Social, biological, financial, etc
•
Complex networks
•
Communities
•
Contagion
•
Controversies
•
Society!
57
Escola das Artes 2022
Social interactions
•
Like, comment, share, cite
•
Dating
•
e-Commerce
•
Payments
•
Digital marketing
•
Political marketing
•
Crime
58
Escola das Artes 2022
Metaverse?
•
Virtual
•
Augmented
•
Fake
•
Holograms
•
New,
or more of the same?
59
Escola das Artes 2022
SO?!
Escola das Artes 2022 60
•
Let's have a look at networks and graphs
Euler 1707 - 1783
Escola das Artes 2022 61
Actors and interactions
•
Networks are made of actors and
interactions
•
Actors from one or more sets
– People and movies, eg
•
Interactions of one or more types
– Follow and retweet, eg
•
Actors and interactions may have other
atributes
Escola das Artes 2022 62
Basics of graphs and networks
•
G = (V, E) vertices and edges
•
O(G) = |V| order
•
S(G) = |E| size
•
A adjacency matrix
• Ki
degree of vertex i
•
Directed/undirected
Escola das Artes 2022 63
●
Directed/undirected?
●
Usually not transitive
– a likes b and b likes c does not imply a likes c
●
Directed > Order (total/partial)
– Rankings, proeminence indexes, etc
●
Undirected > Equivalence
– Communities, clusters, etc
Escola das Artes 2022 64
Network edges
Representations of networks
•
Matrixes, graphs, edge lists, etc
A B
A C
A D
B A
B C
B E
C D
D B
D C
E A
E B
Escola das Artes 2022 65
A B C D E
A 0 1 1 1 0
B 1 0 1 0 1
C 0 0 0 1 0
D 0 1 1 0 0
E 1 1 0 0 0
Global metrics
•
Number of vertices 5
•
Number of edges 11
•
Number of components 1
•
Diameter 2
•
Density 0.55
Escola das Artes 2022 66
Centrality Measures
•
Degree centrality
– Edges per node
•
Closeness centrality
– How close the node is to every other node
•
Betweenness centrality
– How many shortest paths go through the node
•
Bibliometric + Internet style (quality of edges)
– PageRank, eigenvector
67
Escola das Artes 2022
Which metrics?
•
Depend of the answers we need
– Key nodes
– Ranking
– Influence, contagion
– Communities, etc
•
That's what network science is all about
•
You have to know the problem
68
Escola das Artes 2022
Which networks?
•
Identifying networks may be not intuitive
•
But at the end is all about actors and
interactions
– Vertices = nodes = actors
– Edges = relations = interactions
•
Going through examples is helpful
69
Escola das Artes 2022
Countries, FIFA World Cup
70
Escola das Artes 2022
Dynamics
•
Networks may have a temporal dimension
•
Interactions – follow, like, share,
mention, retweet, hashtag, etc – occur in
sequence
•
Network properties evolve in time
Escola das Artes 2022 71
Thank you!
Escola das Artes 2022 72

Archives, data structures and visualization.pdf