CS5303-Computer Science I(final review IV)Data structure

Standard Library

What is that?

C++ Standard Library is a collection of classes and functions
C++ Standard Library are declared within the std namespace


The C++ standard consists of two parts:
The core language and the standard library.
Latter includes aggregate types (vectors, lists, maps, sets, queues, stacks, arrays, tuples), algorithms (find, for_each, binary_search, random_shuffle, etc.), input/output facilities (iostream, for reading from and writing to the console and files) ,etc.


  • Library-based binary trees are available.
  • For Containers, this can be referred to the map
  • Map container is a binary tree, that uses an algorithm to be balance (on the slides, I do not know what is that used for)
Maps :
  • Are associative containers that store elements formed by a combination of a key value and a mapped value, following a specific order.
  • Maps are typically implemented as binary search trees.

Link List:

  • What is that ?
    A linked list is a linear data structure, in which the elements are not stored at contiguous memory locations.
    在这里插入图片描述
    a linked list consists of nodes where each node contains a data field and a reference(link) to the next node in the list.
    在这里插入图片描述
    在这里插入图片描述
  • How to create?
typedef struct student
{
    int data;				//结点中的数据
    struct student *next;	//指向链表下一个结点的指针
}node;
 
node *head;	//头结点指针

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值