Randomized Numerical Linear Algebra Notes I

这篇博客介绍了在Pass-Efficient模型下,如何使用随机化选择算法进行高效计算。首先定义了Pass-Efficient模型,接着阐述了随机化选择算法在处理序列数据时如何返回概率比例正确的索引,并提供了概率证明。最后,讨论了矩阵乘法的近似方法,提出通过随机投影和采样来构建矩阵的“草图”,并量化了误差的上界。
摘要由CSDN通过智能技术生成

Lecture 1: Introduction

Pass-Efficient Model

Definition (Pass-Efficient Model):

Pass: In the Pass-Efficient Model, the only access an algorithm has to the data is via a pass, where a pass over the data is a sequential read of the entire input data set.

Pass-Efficient: In addition to the external storage space to store the data and to a small number of passes over the data, an algorithm in the Pass-Efficient Model is permitted to use additional RAM space and additional computation time. An algorithm is considered pass-efficient if it requires a small constant number of passes and additional space and time which are sublinear in the length of the data stream in order to compute
the solution (or a “description” of the solution)

Randomized Selection Algorithm

Input: { a1,...an} , ai0 , read in one pass, i.e., one sequential read, over the data.

Output: i , ai

1:  D = 0
2:  for i = 1 to n do
3:      D = D + ai
4:      With probability ai/D, let i∗ = i and ai∗ = ai
5:  end for
6:  return i∗, ai∗

Lemma 1: Suppose that { a1,...,an} , ai0 , are read in one pass, i.e., one sequential read over the data, by the Select algorithm. Then the Select algorithm requires O(1) additional storage space and returns i such that Pr[i=i]=ai/ni=1ai .

proof: by induction

  • a1/a1=1 after read the first element

  • Let Dl=li=

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值