- 2
- 0
- 约5.51千字
- 约 36页
- 2017-03-30 发布于江苏
- 举报
4.4 basic data structures
4.4 Basic Data Structures
Lixi
2012.10.22
1
A layout can be represented easily if partitioned into a collection of tiles. A tile is a rectangular section of the layout within a single layer. The tiles are not allowed to overlap within a layer. The elements of a layout are referred to as block tiles. For ease of presentation, we will refer to a block tile simply as a block. The area within a layout that does not contain a block is referred to as vacant space.
2
4.4.1 Atomic Operations for Layout Editors
The basic set of operations that give a designer the freedom to fully manipulate a layout, is referred to as the Atomic Operations.
The following is the list of atomic operations that a layout editor must support.
P=(x , y)
3
Given block B
4
(x , y)
L
w
A
B
5
(x , y)
L
w
A
6
B
B
7
B
B
8
A
A
d
9
A
A
1-dimensional compaction
2-dimensional compaction
10
A
Vacant space
11
4.4.2 Linked List of Blocks
The simplest data structure used to store the components of a layout is a linked list, where each node in the list represents a block.
12
13
Linked list data structures are suitable for a hierarchical system since each level of hierarchy contains few blocks. However, this data structure is not suitable for non hierarchical systems and for hierarchical systems with a large number of blocks in each level. The major disadvantage of this structure is that it does not explicitly represent the vacant space.
14
Converting the vacant space into a collection vacant tiles can be done by extending the upper and lower boundaries of each block horizontally to the left and to the right until it encounters another block or the boundary of the layout as shown in figure 4.19.
15
maximal horizontal strips
modified linked list
4.4.3 Bin-Based Method
The bin-based data structure does not keep information pertaining to the vacant space and does not create vacant tiles.
The grid divides the area into a series of bins which can be represented using a two-dimensional arra
您可能关注的文档
最近下载
- 2026开封市第三届职业技能大赛汽车技术(世赛选拔)项目技术工作文件.pdf VIP
- 站用交直流电源系统技术规范第3部分:直流电源系统.pdf VIP
- 2024年初级会计职称《经济法基础》精讲课件.pptx VIP
- 2025年湖南机电职业技术学院单招职业技能测试题库及参考答案.docx VIP
- 2025年浙江机电职业技术学院单招(语文)测试试卷.docx VIP
- 泰国和中国合同模板(3篇).docx VIP
- 2025年湖南机电职业技术学院单招职业技能测试题库参考答案.docx VIP
- (2026春新版)人教版二年级数学下册《第三单元 万以内数的认识》教案.docx VIP
- 四年级小学下书法设计教案.doc VIP
- 烟气余热利用的热管式换热器设计(毕业论文).docx VIP
原创力文档

文档评论(0)