- 博客(10)
- 收藏
- 关注
原创 蚁群算法解决TSP
#include#include#include#includeusing namespace std;#define size 23int Q = 1000;double Q0 = 100;#define antnum 34double alpha = 0.8;double beta = 2;#define cir 10000double dispersefactor
2017-08-07 19:38:25
4941
原创 8086汇编练习
STACK SEGMENT 'STACK'DW 4096 DUP('C')TOP LABEL WORDSTACK ENDSDATA SEGMENTTRANSFORM DB '1.TRANSFORM', 0DH,0AH,'$'MAX DB '2.MAX',0DH,0AH,'$'SORT DB '3.SORT',0DH,0AH,'$'TIME DB '4.TIME',0DH,0AH,'
2017-08-07 18:15:22
662
原创 栈和队列练习题
11111111111111111111111111#include#includetypedef int datatype;typedef struct node{datatype data;struct node*next;}node;typedef struct stack{node*top;}stack;void initstack(stack*&s){s =
2017-08-07 18:12:57
422
原创 树练习题
#include#includetypedef int value;typedef struct btree{value data;struct btree *lchild, *rchild;int ltag, rtag;struct btree*parent;}*datatype,btree;typedef struct node{datatype data;struc
2017-08-07 18:11:51
267
原创 图练习题
#include#includetypedef int datatype;#define maxsize 100#define inf 1000000000.int visited[maxsize] = { 0 };typedef struct node{datatype data;struct node* next;}node;typedef struct queue{
2017-08-07 18:10:34
228
原创 基于UDP协议的P2P模式即时通信软件1.0
Mainpackage mychat;import java.awt.Color;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.io.IOException;import java.net.DatagramPacket;import java.net.Datagra
2017-08-07 18:06:22
986
原创 基于JPCAP的局域网嗅探器1.0
七、一、Main类package mycapture;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.JButton;import javax.swing.JComboBox;import javax.swing.JFrame;import jav
2017-08-07 18:05:17
466
原创 CS模式聊天软件
package sserver;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.io.IOException;import java.net.ServerSocket;import java.net.Socket;import javax.swing.JButton
2017-08-07 18:03:29
565
原创 Brian2 demo
from brian2 import *import matplotlib.pyplot as pltimport toolsstart_scope()n1=10eqs='''dv/dt=(I-v)/tau:1(unless refractory)I:1tau:second'''seqs='''w:1'''g=NeuronGroup(n1,eqs,threshold='v>
2017-08-07 16:00:48
435
原创 BP算法
from numpy import *import numpy as npclass net: layernum=0 weight=[] bias=[] delta=[] z=[] a=[] lrate=0.5 batchsize=1 deltabias=[] deltaweight=[] def __in
2017-08-07 15:58:20
303
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人