自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(34)
  • 收藏
  • 关注

翻译 体系结构热点:基于FPGA的网络入侵检测(IDS)卸载技术

网络入侵检测系统(IDS)是安全云计算的关键,但随着网络带宽的增加,它们也受到CPU计算能力的严重限制。因此,硬件卸载对于IDS服务器来说至关重要,以支持不断增长的数据包处理吞吐量需求。作者调研发现,绝大部分传统的将FPGA应用在IDS/IPS处理的工作,集中在将特定功能,例如正则表达式匹配,卸载到FPGA上。

2023-11-21 15:03:19 245

翻译 ISCA2022 体系结构顶会 Fidas(阿里云)

近年来,云计算中心在云计算的地位随着范式的转换 而变得越来越重要,成为网络攻击的高价值目标。对云计算中心的攻击包括基于web的攻击(跨站点脚本、SQL注入、路径遍历)、IP欺骗、DNS中毒、端口扫描和DDoS攻击等等。入侵检测和防御系统(IDS/IPS)作为一种有效的网络攻击防御方式,在建立安全的云环境方面中发挥这关键作用。

2023-11-17 15:57:05 285

原创 电子科技大学 分布式系统 期末复习笔记

分布式系统是这样一种系统,其中位于联网计算机上的组件仅通过传递消息来通信和协调它们的操作。

2023-11-17 15:45:07 1045 3

翻译 MobiCom2019计算机网络顶会 TunnelScatter: Low Power Communication for Sensor Tags using Tunnel Diodes中文精读

Authors: Ambuj Varshney, Andreas Soleiman, Thiemo VoigtUppsala University, Uppsala, SwedenABSTRACT: Due to extremely low power consumption, backscatter has become the transmission mechanism of choice for battery-free devices that operate on harvested energ

2023-10-24 15:36:50 95

翻译 ASPLOS 2020 体系结构顶会 Reliable Timekeeping for Intermittent Computing 中文精读

本文提出了一种新的无电池计时机制,实现了可靠的无电池感知和计算,即级联分层剩磁计时器(CHRT),并提出了两个适用于间歇计算的应用实例:时间关键感知和间歇通信。CHRT是基于一个层次结构的剩磁计时器的想法,它结合了精度/分辨率,并且有很快的冷启动速度,同时也兼容长时间的电源故障计时。结合CHRT架构到一个硬件和软件平台,我们提出了botoks的设计和实现-一个新的无电池传感器。有了Botoks及其附带的CHRT,间歇性计算可以进入一个新的阶段,并探索到目前为止不可能实现的新应用程序。

2023-10-16 22:24:39 86

原创 杭电多校总结2021-08-17

1002 Just another board gameProblem Description“So now I move the piece to (179,231). It’s the 999999999th move ofthis game. Finally, one move to go!” “What? Isn’t it only the999999997th move of this game?” “Oh, f**k.”After playing some games of Go,

2021-08-29 22:24:58 476 1

原创 杭电多校总结2021-08-12

1003 Ink on paperProblem DescriptionBob accidentally spilled some drops of ink on the paper. The initialposition of the i-th drop of ink is (xi,yi), which expands outward by0.5 centimeter per second, showing a circle. The curious Bob wants to know how

2021-08-27 12:00:00 328

原创 杭电多校总结2021-08-10

1003 Fall with TreesProblem DescriptionFall wants to draw a perfect binary tree.We first stipulate that all nodes in the tree with the same depth alsohave the same y-coordinate in the plane. Define nodes with the samedepth to be nodes at the same lev

2021-08-27 11:43:02 221

原创 杭电多校总结2021-08-05

1001 Yes, Prime Minister** Problem Description**Mr. Hacker’s Department of Administrative Affairs (DAA) has infinitecivil servants. Every integer is used as an id number by exactly onecivil servant. Mr. Hacker is keen on reducing overmanning in civil

2021-08-26 11:26:27 190

转载 杭电多校总结2021-08-03

1003 VC Is All You NeedProblem DescriptionThree points example.Four points example.In this picture you can draw a line to seperate these 3 points in thetwo dimensional plane to keep points with the same color lie in thesame side no matter how to

2021-08-26 10:50:34 170

原创 杭电多校总结2021-07-29

1001 Calculus** Problem Description**This summer, ZXyang became so tired when doing the problems ofMulti-University contests. So he decided to attend the UnifiedNational Graduate Entrance Examination. This day, he sees a problem ofseries.Let S(x) b

2021-08-26 10:15:29 230

原创 杭电多校总结2021-07-27

1004 Game on Plane** Problem Description**Alice and Bob are playing a game. In this game, there are n straightlines on the 2D plane. Alice will select exactly k straight linesl1,l2,…,lk among all the n straight lines first, then Bob will draw astraig

2021-08-25 11:51:42 260

原创 杭电多校总结2021-07-22

1001 I love cubeProblem DescriptionGive you a cube with a side length of n-1. Find the number of equilateral triangles with three points on the cube point. Each side must be parallel to a certain surface of Oxy, Oxz, Oyz. Now you need to count how many

2021-08-25 10:11:54 206

原创 杭电多校总结2021-08-20

1001** Problem Description**You are given an integer n.You are required to calculate (n mod 1) or (n mod 2) or … or (n mod (n - 1)) or (n mod n).The “or” operation means “bitwise OR”.InputThe first line contains an integer T(1≤T≤5000)representing

2021-08-24 22:28:09 294

原创 2021-07-31

原题链接:https://acm.hdu.edu.cn/showproblem.php?pid=6985Problem DescriptionThis summer, ZXyang became so tired when doing theproblems of Multi-University contests. So he decided to attend theUnified National Graduate Entrance Examination. This day, he se

2021-07-31 11:35:35 125

原创 Minimum spanning tree

本题出自杭电多校第一场Problem DescriptionGiven n-1 points, numbered from 2 to n, the edge weight between thetwo points a and b is lcm(a, b). Please find the minimum spanning treeformed by them.A minimum spanning tree is a subset of the edges of a connected,edg

2021-07-21 16:22:22 210

原创 Mod, Or and Everything

Problem DescriptionYou are given an integer n.You are required to calculate (n mod 1) or (n mod 2) or … or (n mod (n - 1)) or (n mod n).The “or” operation means “bitwise OR”.InputThe first line contains an integer T(1≤T≤5000)representing thenumber.

2021-07-21 12:05:19 257

原创 n&(n-1) n&(-n)

n&(n-1) n&(-n)scanf("%lld",&T); while(T--){ scanf("%lld",&n); if((n&(-n))==n){ printf("%lld\n",max(0ll,n/2-1)); continue; } while((n&(-n))!=n)n-=(n&(-n)); printf("%lld\n",n-1); }在2021杭电多校的第一场,出现了n&(-n),今

2021-07-21 10:52:52 471

原创 三级项目人员删除与修改代码

以下是删除顾客的函数bool Manager::delect_customer_by_name(const string& name)//定义delect_customer_by_name函数以配合delectcustomer删除顾客{ bool bo = false; list<Customer>::iterator it;//定义一个list的常迭百代器it来遍历list中的元素 for (it = lc.begin(); it != lc.end();

2020-06-10 18:54:43 188

原创 C++sort()用于比较其他类型的元素

在manager类中,需要将lc与le中的元素按所付金额的大小排队,但无法直接用sort为list排序,因为list中的元素都是customer与employee类型,无法用>比较,必须重新定义比较函数。bool comparecustomer(const Customer& a, const Customer& b){ return (a.get_cash() > b.get_cash());}void Manager::calculate(){ lc

2020-06-09 11:14:58 216

原创 C++ string中的find()函数

string中find()返回值是字母在母串中的位置(下标记录),如果没有找到,那么会返回一个特别的标记npos。需要注意的是,find函数返回的并不是int,而是string::size_type类型。如下:string::size_type pos;if (string::npos != (pos = line.find("CUSTOMER_FILE="))) { customer_file = line.c_str() + 14; }...

2020-06-09 10:22:03 730

原创 C++中的挂起操作

当我在写三级项目时,想让最后一个图案慢慢展现出来。但是我需要一个能控制时间的函数,在我上网查找时,发现了一个好玩的Sleep()函数。可以实现文件的挂起,以毫秒为单位。这个函数在标准库是没有的,但在某些编译系统中有的。windows系统中有Sleep函数(注意大写),void Sleep(DWORD dwMilliseconds);提供挂起的毫秒数,并且需包含windows.h。CLEAN_SCREEN; cout << "*********欢迎惠顾燕园美发店*********

2020-06-09 10:13:45 1133

原创 c++stringstream缓冲区的清空

stringstream在程序中的作用很广,可以进行数据间的类型转换,也可以进行多个字符串的拼接。详见博客:https://blog.csdn.net/liitdar/article/details/82598039但是,随之而来的问题是,stringstream的清空并没有那么简单。用clear的话,内存会不断增长。在for循环中每次调用strStream.clear()是希望在每次使用完strStream之后清理strStream占用的资源,但stringstream的clear方法并没有真正地

2020-06-09 10:05:01 1169

原创 C++中的单例模式

在某些项目之中,一个类仅需要一个实例并提供一个访问它的全局访问点,该实例被所有程序模块共享,这时我们便需要单例模式。单例模式又称单子模式、单件模式,有很多实现方法。定义一个单例类,使用类的私有静态指针变量指向类的唯一实例,并用一个公有的静态方法获取该实例。单例模式通过类本身来管理其唯一实例,这种特性提供了解决问题的方法。唯一的实例是类的一个普通对象,但设计这个类时,让它只能创建一个实例并提供对此实例的全局访问。唯一实例类Singleton在静态成员函数中隐藏创建实例的操作。习惯上把这个成员函数叫做Ins

2020-06-09 09:45:02 248

转载 获取数组中元素个数的方法

1.sizeof用于判断数据占据的内存字节数。如:sizeof(int)的为4。因此,判断数组的元素个数写法如下:num=sizeof(array)/size(a[0]);2.判断string类型元素个数string是字符串,判断字符串中的字符个数num=string.size();3.判断vector数组的元素个数vector创建动态数组num=vector.size();https://www.cnblogs.com/cff2121/p/9846751.html...

2020-05-14 15:28:30 6674

转载 对结构体定义 typedef struct的理解

typedef是在计算机编程语言中用来为复杂的声明定义别名,这样就可以为现有类型创建别名,定义易于记忆的类型名。这里的数据类型包括内部数据类型(int,char等)和自定义的数据类型(struct等)。我们在编程中使用typedef目的一般有两个,一个是给变量一个易记且意义明确的新名字,另一个是简化一些比较复杂的类型声明。最简单的应用:typedef int mytype;当typedef 与struct结合使用时:typedef struct tagMyStruct{  int iNum; 

2020-05-12 22:55:30 333

转载 有关C++中cout.flush()的理解

众所周与,你所要输出的内容会先存入缓冲区,而flush()的作用正是强行将缓冲区的数据清空。这样在你关闭读写流时,就不会丢失数据。ends函数:终止字符串,即在末尾加入“\n”。flush函数:刷新缓冲区。endl函数:终止一行并刷新缓冲区。可以看出,endl函数与flush的区别在于endl还进行了一步换行操作。示例:int main(){ using namespace std; cout << "a" ; cout << "b" <&

2020-05-12 22:31:37 15489 3

原创 关于ifndef /define/endif在头文件所起作用的思考

这个问题是我在刚开始做三级项目时发现的,当我写了三个头文件、一个cpp文件后,发现vs弹出了错误。其中,GENDER和HAIR_TYPE是我在其中base头文件定义的两个枚举类型,它们在另外两个头文件都有调用。经过我对重定义的查找,发现了它的定义。由于头文件重复包含了所定义的变量或者常量,编译器就会报重复定义的错误。意思是我在另外两个头文件都定义过GENDER和HAIR_TYPE,于是发...

2020-04-19 11:17:35 252

原创 有关在C#GDI+中实现图片保存的感悟

众所周知,graphics是没有直接实现image.save的功能的,所以我们若是想对你所绘的图画实现保存操作的话,必须另辟蹊径。我在查找资料的过程中发现了两种不同的方法:利用bitmap的save功能实现。利用截屏功能实现。首先,Bitmap对象封装了GDI+中的一个位图,它虽然不能像graphics一样实现draw操作,但是可以通过save方法轻松地将位图保存到指定的位置:Save(...

2019-12-28 23:43:08 1579 4

原创 三级项目“小画家益智画板”C#程序的总结

我刚刚完成本学期的三级项目:“小画家益智画板”。现在看来这个项目的思维算是比较简单清晰,不过也有一些涉及到GDI+的有关知识。我将在下面解释本项目的多个要点。`using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;u...

2019-12-28 22:59:30 567

原创 软件工程大学生职业规划书

目录 总论(引言) 自我分析1) 个人认识及外部角色评价2) 职业能力测试结果3) 职业兴趣测试结果4) 自我分析总结 社会环境与个人现状1) 社会环境分析2) 个人现状分析 职业定位与职业分析职业选择:IT行业行政助理职业现状及前景职业能力要求 计划的具体实施步骤1) 短期目标以及计划(两年计划)2) 中期目标以及计划(五年计划)3) 长期目标以及计...

2019-11-29 21:50:54 27885 2

原创 找鞍点问题C#(已解决)

代码如下;简单来说就是1)建立二维数组 2)将输入值导入二维数组 3)找出每一行的最大值 4)将每一行的最大值组成新的数组 5)将判断最大值所在列的最小值是否为该值 6)输出下标或提示语。using System;namespace ConsoleApp3{ class Program { static void Main(strin...

2019-11-23 21:17:34 785 4

原创 请问这个“找出不是两个数组共有的元素”C#有什么问题?(已解决)

在运行题上的实例时无法输出最后一个“1”using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication2{ class Program { static void Main(string[] ...

2019-11-16 11:28:50 280

原创 c#:问大佬们一个特别弱智的问题(问题已解决)

#个人感觉没问题但PTA显示编译错误。using System;namespace ConsoleApp5{class Program{static void Main(string[] args){int c = 0,d=0;int a = int.Parse(Console.ReadLine());string op = Console.ReadLine();strin...

2019-11-05 21:10:01 205

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除