How to draw the image full of arraysHow to draw adjacency array with TikZ?How to produce structure as in...
What's a good word to describe a public place that looks like it wouldn't be rough?
Finding a logistic regression model which can achieve zero error on a training set training data for a binary classification problem with two features
Why is working on the same position for more than 15 years not a red flag?
How would an AI self awareness kill switch work?
Clues on how to solve these types of problems within 2-3 minutes for competitive exams
A starship is travelling at 0.9c and collides with a small rock. Will it leave a clean hole through, or will more happen?
Early credit roll before the end of the film
Do theoretical physics suggest that gravity is the exchange of gravitons or deformation/bending of spacetime?
What is the data structure of $@ in shell?
How to make ice magic work from a scientific point of view?
When can a QA tester start his job?
It took me a lot of time to make this, pls like. (YouTube Comments #1)
What are the exceptions to Natural Selection?
Gear reduction on large turbofans
What does it mean for a caliber to be flat shooting?
Slow While Loop, Query Improvment Assistance
Why did the villain in the first Men in Black movie care about Earth's Cockroaches?
How much mayhem could I cause as a sentient fish?
Graph with overlapping labels
Can a Spectator be a bodyguard? So, can its treasure/item to guard be a person/person's item?
What sets the resolution of an analog resistive sensor?
What incentives do banks have to gather up loans into pools (backed by Ginnie Mae)and selling them?
What is the purpose of easy combat scenarios that don't need resource expenditure?
Why wasn't TEventArgs made contravariant in the standard event pattern in the .NET ecosystem?
How to draw the image full of arrays
How to draw adjacency array with TikZ?How to produce structure as in attached imageHow to implement (low-level) arrays in TeXHow to draw adjacency array with TikZ?Does expl3 have arrays?How to read a file line by line and store each line into an array?use of noexpand in tikz/math associative arrayshow to make the architecture for the auto-generated doc?How to make compact data structure without parsing in LatexHow to go about creating structured data in LatexHow to draw this picture?
I don't know how to make the image given below.

see my code
documentclass{article}
usepackage{tikz}
usetikzlibrary{calc}
begin{document}
begin{tikzpicture}
coordinate (s) at (0,0);
foreach num in {5,2,7,-5,16,12}{
node[minimum size=6mm, draw, rectangle] at (s) {num};
coordinate (s) at ($(s) + (1,0)$);
}
end{tikzpicture}
end{document}
Question : How to draw the image given in the diagram?
data-structures
add a comment |
I don't know how to make the image given below.

see my code
documentclass{article}
usepackage{tikz}
usetikzlibrary{calc}
begin{document}
begin{tikzpicture}
coordinate (s) at (0,0);
foreach num in {5,2,7,-5,16,12}{
node[minimum size=6mm, draw, rectangle] at (s) {num};
coordinate (s) at ($(s) + (1,0)$);
}
end{tikzpicture}
end{document}
Question : How to draw the image given in the diagram?
data-structures
add a comment |
I don't know how to make the image given below.

see my code
documentclass{article}
usepackage{tikz}
usetikzlibrary{calc}
begin{document}
begin{tikzpicture}
coordinate (s) at (0,0);
foreach num in {5,2,7,-5,16,12}{
node[minimum size=6mm, draw, rectangle] at (s) {num};
coordinate (s) at ($(s) + (1,0)$);
}
end{tikzpicture}
end{document}
Question : How to draw the image given in the diagram?
data-structures
I don't know how to make the image given below.

see my code
documentclass{article}
usepackage{tikz}
usetikzlibrary{calc}
begin{document}
begin{tikzpicture}
coordinate (s) at (0,0);
foreach num in {5,2,7,-5,16,12}{
node[minimum size=6mm, draw, rectangle] at (s) {num};
coordinate (s) at ($(s) + (1,0)$);
}
end{tikzpicture}
end{document}
Question : How to draw the image given in the diagram?
data-structures
data-structures
edited Feb 24 at 16:56
leandriis
9,1771530
9,1771530
asked Feb 24 at 16:47
I_wil_break_wallI_wil_break_wall
1096
1096
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
The following code (that is heavily inspired by Gonzalo Medina's answer) might serve as a starting point:

documentclass[border=2pt]{standalone}
usepackage{tikz}
usetikzlibrary{matrix,positioning,arrows.meta,arrows}
tikzset{
mymat/.style={
matrix of math nodes,
text height=2.5ex,
text depth=0.75ex,
text width=3.25ex,
align=center,
row sep=-pgflinewidth
},
}
begin{document}
begin{tikzpicture}[>=latex]
matrix[mymat,anchor=west,style={nodes=draw}]
at (0,0)
(mat1)
{
1\
2\
3\
4\
5\
6\
7\
};
matrix[mymat,right=of mat1,anchor=south,style={nodes={draw}},yshift=1.5cm]
(mat2)
{
1\
2\
};
matrix[mymat,right=of mat2,anchor=center,style={nodes={draw}}]
(mat3)
{
1\
2\
};
matrix[mymat,right=of mat3,anchor=center,style={nodes={draw}}]
(mat4)
{
1\
2\
};
matrix[mymat,right=of mat1,anchor=north,style={nodes={draw}},yshift=-1.5cm]
(mat5)
{
1\
2\
};
matrix[mymat,right=of mat5,anchor=center,style={nodes={draw}}]
(mat6)
{
1\
2\
};
matrix[mymat,right=of mat6,anchor=center,style={nodes={draw}}]
(mat7)
{
1\
2\
};
path[->]
(mat1-1-1.center) edge[bend left=50] node [left] {} (mat2-1-1.north west);
path[->]
(mat1-1-1.center) edge[bend left=60] node [left] {} (mat3-1-1.north west);
path[->]
(mat1-1-1.center) edge[bend left=70] node [left] {} (mat4-1-1.north west);
path[->]
(mat1-7-1.center) edge[bend left=50] node [left] {} (mat5-1-1.north west);
path[->]
(mat1-7-1.center) edge[bend left=60] node [left] {} (mat6-1-1.north west);
path[->]
(mat1-7-1.center) edge[bend left=70] node [left] {} (mat7-1-1.north west);
end{tikzpicture}
end{document}
Instead ofcolumn sep=-pgflinewidthI would userow sep=-pgflinewidth.
– CarLaTeX
15 hours ago
Thanks for the answer but there are few problems with the answer. 1) pointing arrays are small 2) big arrays are is not numbered as required.
– I_wil_break_wall
12 hours ago
@CarLaTeX: Thank you for your commen. Indeed using row sep for a vertical array makes much more sense than using column sep.
– leandriis
2 mins ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476471%2fhow-to-draw-the-image-full-of-arrays%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The following code (that is heavily inspired by Gonzalo Medina's answer) might serve as a starting point:

documentclass[border=2pt]{standalone}
usepackage{tikz}
usetikzlibrary{matrix,positioning,arrows.meta,arrows}
tikzset{
mymat/.style={
matrix of math nodes,
text height=2.5ex,
text depth=0.75ex,
text width=3.25ex,
align=center,
row sep=-pgflinewidth
},
}
begin{document}
begin{tikzpicture}[>=latex]
matrix[mymat,anchor=west,style={nodes=draw}]
at (0,0)
(mat1)
{
1\
2\
3\
4\
5\
6\
7\
};
matrix[mymat,right=of mat1,anchor=south,style={nodes={draw}},yshift=1.5cm]
(mat2)
{
1\
2\
};
matrix[mymat,right=of mat2,anchor=center,style={nodes={draw}}]
(mat3)
{
1\
2\
};
matrix[mymat,right=of mat3,anchor=center,style={nodes={draw}}]
(mat4)
{
1\
2\
};
matrix[mymat,right=of mat1,anchor=north,style={nodes={draw}},yshift=-1.5cm]
(mat5)
{
1\
2\
};
matrix[mymat,right=of mat5,anchor=center,style={nodes={draw}}]
(mat6)
{
1\
2\
};
matrix[mymat,right=of mat6,anchor=center,style={nodes={draw}}]
(mat7)
{
1\
2\
};
path[->]
(mat1-1-1.center) edge[bend left=50] node [left] {} (mat2-1-1.north west);
path[->]
(mat1-1-1.center) edge[bend left=60] node [left] {} (mat3-1-1.north west);
path[->]
(mat1-1-1.center) edge[bend left=70] node [left] {} (mat4-1-1.north west);
path[->]
(mat1-7-1.center) edge[bend left=50] node [left] {} (mat5-1-1.north west);
path[->]
(mat1-7-1.center) edge[bend left=60] node [left] {} (mat6-1-1.north west);
path[->]
(mat1-7-1.center) edge[bend left=70] node [left] {} (mat7-1-1.north west);
end{tikzpicture}
end{document}
Instead ofcolumn sep=-pgflinewidthI would userow sep=-pgflinewidth.
– CarLaTeX
15 hours ago
Thanks for the answer but there are few problems with the answer. 1) pointing arrays are small 2) big arrays are is not numbered as required.
– I_wil_break_wall
12 hours ago
@CarLaTeX: Thank you for your commen. Indeed using row sep for a vertical array makes much more sense than using column sep.
– leandriis
2 mins ago
add a comment |
The following code (that is heavily inspired by Gonzalo Medina's answer) might serve as a starting point:

documentclass[border=2pt]{standalone}
usepackage{tikz}
usetikzlibrary{matrix,positioning,arrows.meta,arrows}
tikzset{
mymat/.style={
matrix of math nodes,
text height=2.5ex,
text depth=0.75ex,
text width=3.25ex,
align=center,
row sep=-pgflinewidth
},
}
begin{document}
begin{tikzpicture}[>=latex]
matrix[mymat,anchor=west,style={nodes=draw}]
at (0,0)
(mat1)
{
1\
2\
3\
4\
5\
6\
7\
};
matrix[mymat,right=of mat1,anchor=south,style={nodes={draw}},yshift=1.5cm]
(mat2)
{
1\
2\
};
matrix[mymat,right=of mat2,anchor=center,style={nodes={draw}}]
(mat3)
{
1\
2\
};
matrix[mymat,right=of mat3,anchor=center,style={nodes={draw}}]
(mat4)
{
1\
2\
};
matrix[mymat,right=of mat1,anchor=north,style={nodes={draw}},yshift=-1.5cm]
(mat5)
{
1\
2\
};
matrix[mymat,right=of mat5,anchor=center,style={nodes={draw}}]
(mat6)
{
1\
2\
};
matrix[mymat,right=of mat6,anchor=center,style={nodes={draw}}]
(mat7)
{
1\
2\
};
path[->]
(mat1-1-1.center) edge[bend left=50] node [left] {} (mat2-1-1.north west);
path[->]
(mat1-1-1.center) edge[bend left=60] node [left] {} (mat3-1-1.north west);
path[->]
(mat1-1-1.center) edge[bend left=70] node [left] {} (mat4-1-1.north west);
path[->]
(mat1-7-1.center) edge[bend left=50] node [left] {} (mat5-1-1.north west);
path[->]
(mat1-7-1.center) edge[bend left=60] node [left] {} (mat6-1-1.north west);
path[->]
(mat1-7-1.center) edge[bend left=70] node [left] {} (mat7-1-1.north west);
end{tikzpicture}
end{document}
Instead ofcolumn sep=-pgflinewidthI would userow sep=-pgflinewidth.
– CarLaTeX
15 hours ago
Thanks for the answer but there are few problems with the answer. 1) pointing arrays are small 2) big arrays are is not numbered as required.
– I_wil_break_wall
12 hours ago
@CarLaTeX: Thank you for your commen. Indeed using row sep for a vertical array makes much more sense than using column sep.
– leandriis
2 mins ago
add a comment |
The following code (that is heavily inspired by Gonzalo Medina's answer) might serve as a starting point:

documentclass[border=2pt]{standalone}
usepackage{tikz}
usetikzlibrary{matrix,positioning,arrows.meta,arrows}
tikzset{
mymat/.style={
matrix of math nodes,
text height=2.5ex,
text depth=0.75ex,
text width=3.25ex,
align=center,
row sep=-pgflinewidth
},
}
begin{document}
begin{tikzpicture}[>=latex]
matrix[mymat,anchor=west,style={nodes=draw}]
at (0,0)
(mat1)
{
1\
2\
3\
4\
5\
6\
7\
};
matrix[mymat,right=of mat1,anchor=south,style={nodes={draw}},yshift=1.5cm]
(mat2)
{
1\
2\
};
matrix[mymat,right=of mat2,anchor=center,style={nodes={draw}}]
(mat3)
{
1\
2\
};
matrix[mymat,right=of mat3,anchor=center,style={nodes={draw}}]
(mat4)
{
1\
2\
};
matrix[mymat,right=of mat1,anchor=north,style={nodes={draw}},yshift=-1.5cm]
(mat5)
{
1\
2\
};
matrix[mymat,right=of mat5,anchor=center,style={nodes={draw}}]
(mat6)
{
1\
2\
};
matrix[mymat,right=of mat6,anchor=center,style={nodes={draw}}]
(mat7)
{
1\
2\
};
path[->]
(mat1-1-1.center) edge[bend left=50] node [left] {} (mat2-1-1.north west);
path[->]
(mat1-1-1.center) edge[bend left=60] node [left] {} (mat3-1-1.north west);
path[->]
(mat1-1-1.center) edge[bend left=70] node [left] {} (mat4-1-1.north west);
path[->]
(mat1-7-1.center) edge[bend left=50] node [left] {} (mat5-1-1.north west);
path[->]
(mat1-7-1.center) edge[bend left=60] node [left] {} (mat6-1-1.north west);
path[->]
(mat1-7-1.center) edge[bend left=70] node [left] {} (mat7-1-1.north west);
end{tikzpicture}
end{document}
The following code (that is heavily inspired by Gonzalo Medina's answer) might serve as a starting point:

documentclass[border=2pt]{standalone}
usepackage{tikz}
usetikzlibrary{matrix,positioning,arrows.meta,arrows}
tikzset{
mymat/.style={
matrix of math nodes,
text height=2.5ex,
text depth=0.75ex,
text width=3.25ex,
align=center,
row sep=-pgflinewidth
},
}
begin{document}
begin{tikzpicture}[>=latex]
matrix[mymat,anchor=west,style={nodes=draw}]
at (0,0)
(mat1)
{
1\
2\
3\
4\
5\
6\
7\
};
matrix[mymat,right=of mat1,anchor=south,style={nodes={draw}},yshift=1.5cm]
(mat2)
{
1\
2\
};
matrix[mymat,right=of mat2,anchor=center,style={nodes={draw}}]
(mat3)
{
1\
2\
};
matrix[mymat,right=of mat3,anchor=center,style={nodes={draw}}]
(mat4)
{
1\
2\
};
matrix[mymat,right=of mat1,anchor=north,style={nodes={draw}},yshift=-1.5cm]
(mat5)
{
1\
2\
};
matrix[mymat,right=of mat5,anchor=center,style={nodes={draw}}]
(mat6)
{
1\
2\
};
matrix[mymat,right=of mat6,anchor=center,style={nodes={draw}}]
(mat7)
{
1\
2\
};
path[->]
(mat1-1-1.center) edge[bend left=50] node [left] {} (mat2-1-1.north west);
path[->]
(mat1-1-1.center) edge[bend left=60] node [left] {} (mat3-1-1.north west);
path[->]
(mat1-1-1.center) edge[bend left=70] node [left] {} (mat4-1-1.north west);
path[->]
(mat1-7-1.center) edge[bend left=50] node [left] {} (mat5-1-1.north west);
path[->]
(mat1-7-1.center) edge[bend left=60] node [left] {} (mat6-1-1.north west);
path[->]
(mat1-7-1.center) edge[bend left=70] node [left] {} (mat7-1-1.north west);
end{tikzpicture}
end{document}
edited 2 mins ago
answered Feb 24 at 19:34
leandriisleandriis
9,1771530
9,1771530
Instead ofcolumn sep=-pgflinewidthI would userow sep=-pgflinewidth.
– CarLaTeX
15 hours ago
Thanks for the answer but there are few problems with the answer. 1) pointing arrays are small 2) big arrays are is not numbered as required.
– I_wil_break_wall
12 hours ago
@CarLaTeX: Thank you for your commen. Indeed using row sep for a vertical array makes much more sense than using column sep.
– leandriis
2 mins ago
add a comment |
Instead ofcolumn sep=-pgflinewidthI would userow sep=-pgflinewidth.
– CarLaTeX
15 hours ago
Thanks for the answer but there are few problems with the answer. 1) pointing arrays are small 2) big arrays are is not numbered as required.
– I_wil_break_wall
12 hours ago
@CarLaTeX: Thank you for your commen. Indeed using row sep for a vertical array makes much more sense than using column sep.
– leandriis
2 mins ago
Instead of
column sep=-pgflinewidth I would use row sep=-pgflinewidth.– CarLaTeX
15 hours ago
Instead of
column sep=-pgflinewidth I would use row sep=-pgflinewidth.– CarLaTeX
15 hours ago
Thanks for the answer but there are few problems with the answer. 1) pointing arrays are small 2) big arrays are is not numbered as required.
– I_wil_break_wall
12 hours ago
Thanks for the answer but there are few problems with the answer. 1) pointing arrays are small 2) big arrays are is not numbered as required.
– I_wil_break_wall
12 hours ago
@CarLaTeX: Thank you for your commen. Indeed using row sep for a vertical array makes much more sense than using column sep.
– leandriis
2 mins ago
@CarLaTeX: Thank you for your commen. Indeed using row sep for a vertical array makes much more sense than using column sep.
– leandriis
2 mins ago
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476471%2fhow-to-draw-the-image-full-of-arrays%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown