- 博客(14)
- 资源 (1)
- 收藏
- 关注
原创 Q-M(Quine-McCluskey)法化简布尔表达式
首先,对于一个布尔表达式,肯定可以用布尔代数里的那一系列定理和定律进行化简。但是,我想除非布尔表达式的项非常少且可化简项显而易见,否则应该没人会去用那一套方法。就算你能化简,你也不一定能保证化简结果是最简的。化简布尔表达式,首先想到的应该是卡诺图。用卡诺图的操作方法非常简单,概括起来就是两字:画圈。而且,不只是画圈,还是画各种圈。对于3~4个变量组成的布尔表达式,运用卡诺图可以很快地化简。但是,当输入变量一多,光是构造一张卡诺图就很麻烦(对于10个变量,卡诺图就有210=10242^{10}=102421
2020-11-27 18:14:14
14937
3
原创 远程桌面无法启动MATLAB的解决方案
Version:MATLAB2019a由于 matlab使用了 FLEXlm进行 liscense管理,而 FLEXlm不支持从远程桌面访问,会报以下错误License checkout failed.License Manager Error -103MATLAB cannot be started through Terminal Services.…解决方案进入MATLAB安装目录的\licenses目录下打开license文件,将其中的SIGN=全部替换为TS_OK SIGN=,这样就
2020-11-01 17:34:39
1498
1
原创 FLex与Bison实现简易计算器
计算器主要实现了整数的加、减、乘、除、括号以及绝对值运算。其中,绝对值符号用|表示。FLex词法分析calculator.l%{ #include "calculator.tab.h"%}%option noyywrap%%"+" { return ADD; }"-" { return SUB; }"*" { return MUL; }"/" { return DIV; }"|" { return ABS; }"(" { return OP; }")"
2020-10-29 16:17:51
1677
原创 win10安装gcc编译器
MingW64下载地址:https://sourceforge.net/projects/mingw-w64/?source=typ_redirect安装好后,将安装目录下的bin目录添加到环境变量即可使用gcc。
2020-10-29 15:59:47
1053
原创 win10安装Bison语法分析器
Flex下载地址:http://gnuwin32.sourceforge.net/packages/bison.htm点击Setup下载Bison,下载完成后安装即可,注意记住Bison的安装路径。配置环境变量右击“此电脑”,选择“属性”->“高级设置”,在系统变量中将Bison安装路径下的bin目录加入Path中。输入组合键“win+R”,输入“cmd”打开命令终端,输入bison -V查看bison是否安装成功。至此,Bison安装完成,可以在命令行使用bison进行语法分析了。
2020-10-25 20:57:08
2521
1
原创 win10安装Flex词法分析器
Flex下载地址:http://gnuwin32.sourceforge.net/packages/flex.htm点击Setup下载Flex,下载完成后安装即可,注意记住Flex的安装路径。配置环境变量右击“此电脑”,选择“属性”->“高级设置”,在系统变量中将Flex安装路径下的bin目录加入Path中。至此,Flex安装完成,可以在命令行使用flex直接编译Lex源文件了。...
2020-10-25 16:37:48
1805
1
原创 输入两个链表,寻找其公共结点
/* find_first_common_node.c * * Copyright (c) 2020 * Author: plant * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software Foundati
2020-10-14 16:56:04
94
原创 判断一个整数序列是否是另一个整数序列的出栈顺序
/* is_pop_order.c * * Copyright (c) 2020 * Author: plant * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software Foundation; either
2020-10-14 16:54:20
144
原创 输入一个链表,反转链表后,输出新链表的表头
/* reverse_link_list.c * * Copyright (c) 2020 * Author: plant * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software Foundation; e
2020-10-14 16:52:06
106
原创 用两个栈来实现一个队列,完成队列的Push和Pop操作
/* queue.c * * Copyright (c) 2020 * Author: plant * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software Foundation; either versio
2020-10-14 16:50:03
268
原创 队列的顺序存储结构实现
/* sq_queue.c * * Copyright (c) 2020 * Author: plant * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software Foundation; either ver
2020-10-14 15:06:05
181
原创 栈的顺序存储结构实现
#include <stdio.h>#define MAX_STACK_SIZE (100)typedef int ELEM_TYPE;typedef struct _sq_stack{ ELEM_TYPE data[MAX_STACK_SIZE]; int top;} sq_stack;void sq_stack_init(sq_stack* stack){ stack->top = -1; return ;}int inline
2020-10-14 14:50:50
143
原创 线性表的顺序存储结构实现
线性表的顺序存储结构实现#include <stdio.h>#define SQ_LIST_MAX_SIZE (100)typedef int ELEM_TYPE;typedef struct _sq_list{ ELEM_TYPE data[SQ_LIST_MAX_SIZE ]; int len;} sq_list;void clear_sq_list(sq_list list){ list.len = 0;}int sq_list_get_elem(sq_
2020-10-12 23:45:34
175
原创 线性表的单链式存储结构实现
线性表C语言实现/* The industrial I/O core * * Copyright (c) 2020 Leizhen@xmu.ese * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software
2020-10-10 08:56:49
131
FLex Bison MingW64
2020-10-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人