登录
首页 » matlab » dcrp

dcrp

于 2018-06-14 发布 文件大小:15KB
0 187
下载积分: 1 下载次数: 10

代码说明:

  无线传感器网络,DCPR算法仿真, 基于LEACH算法改进,节点随机分布,通信功率不可变(a simulation of wireless sensor network routing protocol named DCRP)

文件列表:

DataCreator3.m, 95 , 2016-06-08
Datacreator100.m, 95 , 2017-09-15
DCRP.m, 16836 , 2017-09-20
DCRP2.m, 17215 , 2017-10-25
data100.mat, 1862 , 2017-09-15
data500.mat, 7869 , 2016-06-08

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 个人用thinkphp做的站管理系统、微信管理。execl上传,文件上传,数据统计等等
    个人用thinkphp做的网站管理系统、微信管理。execl上传,文件上传,数据统计等等
    2017-11-28下载
    积分:1
  • 441523
    稳定的服务器客户源码,程序调用API函数,实现Socket套接字的端口异步交互。(Stable server client source code , the program calls API functions achieve port asynchronous interaction Socket socket .)
    2016-01-19 12:51:15下载
    积分:1
  • TestScktIocp
    与ScktComp兼容的IOCP服务端组件 参考了IOCPComp组件和ScktComp组件,可以直接替换ScktComp的TServerSocket 其中的事件方法大致相同,同于本身的IOCP特性,不再提供原TServerSocket的线程阻塞选项.核心文件(ScktIocp.pas) 测试时先导入注册表文件,修改连接数,在XP下测试可连接3万个连接. 用FastMM4测试,没有发现内存泄漏,应用大规模服务还有待测试. 如发现有错误之处请更正后通知本人.(ScktComp compatible with the IOCP server components IOCPComp reference ScktComp components and components, can directly replace the ScktComp events which TServerSocket methodology is generally the same, with the IOCP on its properties, no longer blocking the original thread TServerSocket options . the core document (ScktIocp.pas) test registry file to import, modify connections in XP to connect to test the 30,000 connections. FastMM4 test used, no memory leaks, application of large-scale services have yet to be tested. If there is error, please notify me corrected.)
    2021-04-13 02:08:56下载
    积分:1
  • Implemented using C++ client chat program, mainly for learning network programmi...
    用C++实现的聊天程序的客户端,主要用于学习网络编程。-Implemented using C++ client chat program, mainly for learning network programming.
    2022-02-21 09:08:52下载
    积分:1
  • PhpSpy2005full
    PhpSpy2005 完整版(PhpSpy2005 full version)
    2005-01-08 22:25:57下载
    积分:1
  • asp.net经典案例资料,希望对初学者有所帮助
    asp.net经典案例资料,希望对初学者有所帮助-classic case information, and I hope to help beginners
    2022-12-21 05:45:03下载
    积分:1
  • 弹幕demo
    实现部分弹幕功能,类似BILIBILI弹幕网(Achieve partial barrage function)
    2018-08-27 09:14:43下载
    积分:1
  • c# 扫描IP Http Header
    c# 扫描IP Http Headerusing System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Threading;using System.IO;namespace HScan{ public partial class Form1 : Form { int _currentThreads = 0; int _maxThreads = 100; Thread main = null; Thread mt = null; List threads = new List(); public Form1() { InitializeComponent(); Control.CheckForIllegalCrossThreadCalls = false; } private void btnStart_Click(object sender, EventArgs e) { btnStart.Enabled = false; if (txtStart.Text.Trim() == "") { MessageBox.Show("起始IP不能为空."); return; } if (txtEnd.Text.Trim() == "") { MessageBox.Show("结束IP不能为空."); return; } int ts = Convert.ToInt32(txtThreads.Text); _maxThreads = ts; string startIp = txtStart.Text; string endIp = txtEnd.Text; TParameter tp=new TParameter(); tp.StartIp=startIp; tp.EndIp=endIp; tp.ThreadCount=ts; main = new Thread(new ParameterizedThreadStart(StartMe)); main.Start(tp); } protected void ThreadManage() { Thread c=null; while (true) { System.Object lockThis = new System.Object(); lock (lockThis) { for (int i = 0; i < threads.Count; i ) { if (threads[i] != null && !threads[i].IsAlive) { c = threads[i]; break; } } if (c != null) { threads.Remove(c); } } } } protected void StartMe(object ob) { mt = new Thread(new ThreadStart(ThreadManage)); mt.Start(); TParameter p = ob as TParameter; string curIp = p.StartIp; while (true) { for (int i = 0; i < _maxThreads; i ) { if (curIp != "") { if (_currentThreads >= _maxThreads) break; System.Object lockThis = new System.Object(); lock (lockThis) { _currentThreads ; if (_currentThreads > _maxThreads) _currentThreads = _maxThreads; string tip = curIp; Thread t = new Thread(new ParameterizedThreadStart(Run)); t.Start(tip); threads.Add(t); curIp = IPUtility.getLastIp(curIp, p.EndIp, 1); } } else { break; } } } } protected void Run(object ob) { string ip = ob.ToString(); SocketGetHead h = new SocketGetHead(); string ret = h.GetHtml(ip, 80); if (ret.IndexOf("DVRDVS-Webs") > 0) { ListViewItem item = new ListViewItem(); item.SubItems[0].Text = (listView1.Items.Count 1).ToString(); ListViewItem.ListViewSubItem lvSubItem = new ListViewItem.ListViewSubItem(); lvSubItem.Text = ip; item.SubItems.Add(lvSubItem); lvSubItem = new ListViewItem.ListViewSubItem(); lvSubItem.Text = "DVRDVS-Webs"; item.SubItems.Add(lvSubItem); listView1.Items.Add(item); } System.Object lockThis = new System.Object(); lock(lockThis) { lblCurIp.Text = ip; _currentThreads--; if (_currentThreads < 0) _currentThreads = 0; } } private void tsmCopy_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count > 0) { string ip = listView1.SelectedItems[0].SubItems[1].Text; Clipboard.SetText(ip); } } private void tsmExport_Click(object sender, EventArgs e) { StreamWriter writer = new StreamWriter(AppDomain.CurrentDomain.BaseDirectory "\export.txt",true); foreach (ListViewItem item in listView1.Items) { string ip=item.SubItems[1].Text; writer.WriteLine(ip); writer.Flush(); } writer.Flush(); writer.Close(); MessageBox.Show("导出成功!"); } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { try { if (mt != null) { mt.Interrupt(); mt.Abort(); } foreach (Thread t in threads) { t.Interrupt(); t.Abort(); } if (main != null) { main.Interrupt(); main.Abort(); } } catch { } Thread.Sleep(5000); } private void btnStop_Click(object sender, EventArgs e) { try { if (mt != null) { mt.Interrupt(); mt.Abort(); } foreach (Thread t in threads) { t.Interrupt(); t.Abort(); } if (main != null) { main.Interrupt(); main.Abort(); } } catch { } btnStart.Enabled = true; } }}
    2014-06-23下载
    积分:1
  • 站点映像
    站点映像程序-The app of site mirror
    2022-07-07 09:52:40下载
    积分:1
  • ArpSender
    一个抓包小工具,获取网络上面其它装置之间通讯报文(a tool that get a net reports between other equipments)
    2015-05-07 16:34:05下载
    积分:1
  • 696518资源总数
  • 105559会员总数
  • 1今日下载