-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
6754 lines (6248 loc) · 757 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="keywords" content="imarkofu的个人博客 Gallen">
<meta name="description" content="the most important thing is endurance.">
<meta name="theme-color" content="#222">
<title>imarkofu's blog</title>
<link rel="shortcut icon" href="/favicon.ico?v=1624117506622">
<link rel="stylesheet" href="/styles/main.css">
<link rel="stylesheet" href="/media/css/pisces.css">
<link rel="stylesheet" href="/media/fonts/font-awesome.css">
<link
href="//fonts.googleapis.com/css?family=Monda:300,300italic,400,400italic,700,700italic|Roboto Slab:300,300italic,400,400italic,700,700italic|Rosario:300,300italic,400,400italic,700,700italic|PT Mono:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext"
rel="stylesheet" type="text/css">
<link href="/media/hljs/styles/tomorrow-night-eighties.css"
rel="stylesheet">
<script src="/media/hljs/highlight.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/velocity.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/velocity.ui.min.js"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<script>
var _hmt = _hmt || [];
(function () {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?12b3293398b51d8227d4915298f8c206";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body>
<div class="head-top-line"></div>
<div class="header-box">
<div class="pisces">
<header class="header ">
<div class="blog-header box-shadow-wrapper bg-color " id="header">
<div class="nav-toggle" id="nav_toggle">
<div class="toggle-box">
<div class="line line-top"></div>
<div class="line line-center"></div>
<div class="line line-bottom"></div>
</div>
</div>
<div class="site-meta">
<div class="site-title">
<a href="/" class="brand">
<span>imarkofu's blog</span>
</a>
</div>
<p class="subtitle">the most important thing is endurance.</p>
</div>
<nav class="site-nav" id="site_nav">
<ul id="nav_ul">
<li class="nav-item nav-item-active">
<a href="/" target="_self">
<i class="fa fa-home"></i> 首页
</a>
</li>
<li class="nav-item ">
<a href="/archives/" target="_self">
<i class="fa fa-archive"></i> 归档
</a>
</li>
<li class="nav-item ">
<a href="/tags/" target="_self">
<i class="fa fa-tags"></i> 标签
</a>
</li>
<li class="nav-item ">
<a href="/post/about/" target="_self">
<i class="fa fa-user"></i> 关于
</a>
</li>
<li class="nav-item ">
<a href="/friends/" target="_self">
<i class="fa fa-address-book"></i> 友情链接
</a>
</li>
</ul>
</nav>
</div>
</header>
</div>
<script type="text/javascript">
let showNav = true;
let navToggle = document.querySelector('#nav_toggle'),
siteNav = document.querySelector('#site_nav');
function navClick() {
let sideBar = document.querySelector('.sidebar');
let navUl = document.querySelector('#nav_ul');
navToggle.classList.toggle('nav-toggle-active');
siteNav.classList.toggle('nav-menu-active');
if (siteNav.classList.contains('nav-menu-active')) {
siteNav.style = "height: " + (navUl.children.length * 42) +"px !important";
} else {
siteNav.style = "";
}
}
navToggle.addEventListener('click',navClick);
</script>
</div>
<div class="main-continer">
<div
class="section-layout pisces ">
<div class="section-layout-wrapper">
<div id="sidebarMeta" class="sidebar">
<div class="sidebar-wrapper box-shadow-wrapper bg-color">
<div class="sidebar-item">
<img class="site-author-image right-motion" src="/images/avatar.png"/>
<p class="site-author-name">Gallen</p>
</div>
<div class="sidebar-item side-item-stat right-motion">
<div class="sidebar-item-box">
<a href="/archives/">
<span class="site-item-stat-count">50</span>
<span class="site-item-stat-name">文章</span>
</a>
</div>
<div class="sidebar-item-box">
<a href="">
<span class="site-item-stat-count">83</span>
<span class="site-item-stat-name">分类</span>
</a>
</div>
<div class="sidebar-item-box">
<a href="/tags/">
<span class="site-item-stat-count">83</span>
<span class="site-item-stat-name">标签</span>
</a>
</div>
</div>
<div class="sidebar-item">
<span class="site-item-rss">
<i class="fa fa-rss"></i>
<a href="https://imarkofu.github.io/atom.xml" target="_blank">RSS</a>
</span>
</div>
</div>
</div>
<script>
let sidebarMeta = document.querySelector('#sidebarMeta');
let scheme = 'pisces';
let sidebarWrapper = document.querySelector('.sidebar-wrapper');
if (sidebarMeta && (scheme === 'pisces' || scheme === 'gemini')) {
document.addEventListener('scroll', function(e) {
if (document.scrollingElement.scrollTop > parseInt(sidebarMeta.style.marginTop) + 10) {
sidebarWrapper.classList.add('home-sidebar-fixed')
} else {
sidebarWrapper.classList.remove('home-sidebar-fixed')
}
});
}
</script>
<div class="section-box pisces">
<section class="section bg-color posts-expand slide-down-in">
<article class="post-list-box post box-shadow-wrapper">
<div class="article-wrapper bg-color">
<header class="post-header">
<h1 class="post-title">
<a class="post-title-link" href="https://imarkofu.github.io/post/mysql-5-7-34-winx64-install/">
mysql-5.7.34-winx64安装
</a>
</h1>
<div class="post-meta">
<span class="meta-item pc-show">
<i class="fa fa-calendar-o"></i>
<span>发布于</span>
<span>2021-06-19</span>
<span class="post-meta-divider pc-show">|</span>
</span>
<span class="meta-item">
<i class="fa fa-folder-o"></i>
<span class="pc-show">分类于</span>
<a href="https://imarkofu.github.io/tag/IrVH3x6Yv1n/">
<span>MySQL</span>
</a>
</span>
<span class="post-meta-divider">|</span>
<span class="meta-item">
<i class="fa fa-clock-o"></i>
<span>2分钟</span>
</span>
<span class="meta-item">
<span class="post-meta-divider">|</span>
<i class="fa fa-file-word-o"></i>
<span>303<span class="pc-show">字数</span></span>
</span>
</div>
</header>
<div class="post-body">
<h2 id="下载">下载</h2>
<p>官网[ https://dev.mysql.com/downloads/mysql/5.7.html ]下载mysql5.7.34,选择zip;</p>
<div class="post-button text-center">
<a class="btn" href="https://imarkofu.github.io/post/mysql-5-7-34-winx64-install/" rel="contents">
阅读全文 »
</a>
</div>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</div>
</article>
<article class="post-list-box post box-shadow-wrapper">
<div class="article-wrapper bg-color">
<header class="post-header">
<h1 class="post-title">
<a class="post-title-link" href="https://imarkofu.github.io/post/debian-switch-source/">
Debian 官方源换为国内的源的操作方法
</a>
</h1>
<div class="post-meta">
<span class="meta-item pc-show">
<i class="fa fa-calendar-o"></i>
<span>发布于</span>
<span>2021-06-09</span>
<span class="post-meta-divider pc-show">|</span>
</span>
<span class="meta-item">
<i class="fa fa-folder-o"></i>
<span class="pc-show">分类于</span>
<a href="https://imarkofu.github.io/tag/uP-eMausMK8/">
<span>linux</span>
</a>
</span>
<span class="post-meta-divider">|</span>
<span class="meta-item">
<i class="fa fa-clock-o"></i>
<span>4分钟</span>
</span>
<span class="meta-item">
<span class="post-meta-divider">|</span>
<i class="fa fa-file-word-o"></i>
<span>640<span class="pc-show">字数</span></span>
</span>
</div>
</header>
<div class="post-body">
<h2 id="描述">描述</h2>
<p>debian操作系统,apt-get update 报错,采用更换源的方式解决问题。</p>
<pre><code class="language-shell">E: Release file for http://deb.debian.org/debian/dists/buster-updates/InRelease is not valid yet (invalid for another 7h 27min 25s). Updates for this repository will not be applied.
E: Release file for http://security.debian.org/debian-security/dists/buster/updates/InRelease is not valid yet (invalid for another 1h 35min 41s). Updates for this repository will not be applied.
</code></pre>
<div class="post-button text-center">
<a class="btn" href="https://imarkofu.github.io/post/debian-switch-source/" rel="contents">
阅读全文 »
</a>
</div>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</div>
</article>
<article class="post-list-box post box-shadow-wrapper">
<div class="article-wrapper bg-color">
<header class="post-header">
<h1 class="post-title">
<a class="post-title-link" href="https://imarkofu.github.io/post/spring-boot-allowed-origins/">
spring boot跨域问题
</a>
</h1>
<div class="post-meta">
<span class="meta-item pc-show">
<i class="fa fa-calendar-o"></i>
<span>发布于</span>
<span>2021-06-03</span>
<span class="post-meta-divider pc-show">|</span>
</span>
<span class="meta-item">
<i class="fa fa-folder-o"></i>
<span class="pc-show">分类于</span>
<a href="https://imarkofu.github.io/tag/aUuOA0b3r/">
<span>spring</span>
</a>
</span>
<span class="post-meta-divider">|</span>
<span class="meta-item">
<i class="fa fa-clock-o"></i>
<span>2分钟</span>
</span>
<span class="meta-item">
<span class="post-meta-divider">|</span>
<i class="fa fa-file-word-o"></i>
<span>409<span class="pc-show">字数</span></span>
</span>
</div>
</header>
<div class="post-body">
<h2 id="描述">描述</h2>
<p>目前应用开发前后端分离是大趋势,故而前后端部署在不同的两个域也是大概率事件,那么势必需要解决跨域请求的问题。</p>
<p>本文描述spring-boot项目中如何解决请求跨域的三种解决方案,以及升级spring-boot 2.4后的跨域问题。</p>
<div class="post-button text-center">
<a class="btn" href="https://imarkofu.github.io/post/spring-boot-allowed-origins/" rel="contents">
阅读全文 »
</a>
</div>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</div>
</article>
<article class="post-list-box post box-shadow-wrapper">
<div class="article-wrapper bg-color">
<header class="post-header">
<h1 class="post-title">
<a class="post-title-link" href="https://imarkofu.github.io/post/maven-compiler-image-api-not-exist/">
maven项目编译:程序包com.sun.image.codec.jpeg不存在
</a>
</h1>
<div class="post-meta">
<span class="meta-item pc-show">
<i class="fa fa-calendar-o"></i>
<span>发布于</span>
<span>2021-06-03</span>
<span class="post-meta-divider pc-show">|</span>
</span>
<span class="meta-item">
<i class="fa fa-folder-o"></i>
<span class="pc-show">分类于</span>
<a href="https://imarkofu.github.io/tag/rgfrKmU1i-l/">
<span>maven</span>
</a>
</span>
<span class="post-meta-divider">|</span>
<span class="meta-item">
<i class="fa fa-clock-o"></i>
<span>2分钟</span>
</span>
<span class="meta-item">
<span class="post-meta-divider">|</span>
<i class="fa fa-file-word-o"></i>
<span>213<span class="pc-show">字数</span></span>
</span>
</div>
</header>
<div class="post-body">
<h2 id="描述">描述</h2>
<p>maven编译项目提示<br>
程序包com.sun.image.codec.jpeg不存在<br>
然后这个类位于:jre/lib/rt.jar</p>
<div class="post-button text-center">
<a class="btn" href="https://imarkofu.github.io/post/maven-compiler-image-api-not-exist/" rel="contents">
阅读全文 »
</a>
</div>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</div>
</article>
<article class="post-list-box post box-shadow-wrapper">
<div class="article-wrapper bg-color">
<header class="post-header">
<h1 class="post-title">
<a class="post-title-link" href="https://imarkofu.github.io/post/git-bash-filename-too-long/">
git bash下的Filename too long
</a>
</h1>
<div class="post-meta">
<span class="meta-item pc-show">
<i class="fa fa-calendar-o"></i>
<span>发布于</span>
<span>2021-06-02</span>
<span class="post-meta-divider pc-show">|</span>
</span>
<span class="meta-item">
<i class="fa fa-folder-o"></i>
<span class="pc-show">分类于</span>
<a href="https://imarkofu.github.io/tag/smEw4gxeP/">
<span>git</span>
</a>
</span>
<span class="post-meta-divider">|</span>
<span class="meta-item">
<i class="fa fa-clock-o"></i>
<span>2分钟</span>
</span>
<span class="meta-item">
<span class="post-meta-divider">|</span>
<i class="fa fa-file-word-o"></i>
<span>279<span class="pc-show">字数</span></span>
</span>
</div>
</header>
<div class="post-body">
<h2 id="描述">描述</h2>
<p>从github克隆一个项目下发出现了错误:</p>
<pre><code class="language-shell">cglong@cglong MINGW64 /c/Tools/workspace/idea/open
$ git clone [email protected]:imarkofu/shenyu.git
Cloning into 'shenyu'...
Warning: Permanently added the RSA host key for IP address '52.192.72.89' to the list of known hosts.
remote: Enumerating objects: 53479, done.
remote: Counting objects: 100% (15170/15170), done.
remote: Compressing objects: 100% (4534/4534), done.
remote: Total 53479 (delta 4593), reused 14765 (delta 4365), pack-reused 38309
Receiving objects: 100% (53479/53479), 20.72 MiB | 128.00 KiB/s, done.
Resolving deltas: 100% (17773/17773), done.
error: unable to create file shenyu-spring-boot-starter/shenyu-spring-boot-starter-sync-data-center/shenyu-spring-boot-starter-sync-data-websocket/src/main/java/org/apache/shenyu/springboot/starter/sync/data/websocket/WebsocketSyncDataConfiguration.java: Filename too long
error: unable to create file shenyu-spring-boot-starter/shenyu-spring-boot-starter-sync-data-center/shenyu-spring-boot-starter-sync-data-websocket/src/test/java/org/apache/shenyu/springboot/starter/sync/data/websocket/WebsocketSyncDataConfigurationTest.java: Filename too long
Checking out files: 100% (1439/1439), done.
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
</code></pre>
<p>git可以创建4096长度的路径,然而Windows 默认不支持文件名或目录名长于260个字符,所以Git的Windows客户端默认是禁用长名称支持的。</p>
<div class="post-button text-center">
<a class="btn" href="https://imarkofu.github.io/post/git-bash-filename-too-long/" rel="contents">
阅读全文 »
</a>
</div>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</div>
</article>
<article class="post-list-box post box-shadow-wrapper">
<div class="article-wrapper bg-color">
<header class="post-header">
<h1 class="post-title">
<a class="post-title-link" href="https://imarkofu.github.io/post/CentOS-install-python3/">
CentOS6编译安装Python3.7
</a>
</h1>
<div class="post-meta">
<span class="meta-item pc-show">
<i class="fa fa-calendar-o"></i>
<span>发布于</span>
<span>2019-04-03</span>
<span class="post-meta-divider pc-show">|</span>
</span>
<span class="meta-item">
<i class="fa fa-folder-o"></i>
<span class="pc-show">分类于</span>
<a href="https://imarkofu.github.io/tag/dYnxLc62K/">
<span>编译安装Python</span>
</a>、
<a href="https://imarkofu.github.io/tag/-MJ4bHnjMi/">
<span>Python安装</span>
</a>
</span>
<span class="post-meta-divider">|</span>
<span class="meta-item">
<i class="fa fa-clock-o"></i>
<span>2分钟</span>
</span>
<span class="meta-item">
<span class="post-meta-divider">|</span>
<i class="fa fa-file-word-o"></i>
<span>280<span class="pc-show">字数</span></span>
</span>
</div>
</header>
<div class="post-body">
<p>准备编译环境</p>
<pre><code class="language-shell">yum install zlib-devel bzip2-devel openssl-devel ncurses-devel xz gcc-c++ gcc libffi-devel -y
</code></pre>
<div class="post-button text-center">
<a class="btn" href="https://imarkofu.github.io/post/CentOS-install-python3/" rel="contents">
阅读全文 »
</a>
</div>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</div>
</article>
<article class="post-list-box post box-shadow-wrapper">
<div class="article-wrapper bg-color">
<header class="post-header">
<h1 class="post-title">
<a class="post-title-link" href="https://imarkofu.github.io/post/CentOS-ekho-TTS/">
ekho中文TTS CentOS6编译安装
</a>
</h1>
<div class="post-meta">
<span class="meta-item pc-show">
<i class="fa fa-calendar-o"></i>
<span>发布于</span>
<span>2019-04-02</span>
<span class="post-meta-divider pc-show">|</span>
</span>
<span class="meta-item">
<i class="fa fa-folder-o"></i>
<span class="pc-show">分类于</span>
<a href="https://imarkofu.github.io/tag/3RN5pO-e_Q/">
<span>TTS</span>
</a>、
<a href="https://imarkofu.github.io/tag/vTZWKiwV9e/">
<span>中文TTS</span>
</a>、
<a href="https://imarkofu.github.io/tag/KklA2V1Ye3/">
<span>ekho</span>
</a>、
<a href="https://imarkofu.github.io/tag/aF7XhNQSmF/">
<span>ekho编译安装</span>
</a>
</span>
<span class="post-meta-divider">|</span>
<span class="meta-item">
<i class="fa fa-clock-o"></i>
<span>2分钟</span>
</span>
<span class="meta-item">
<span class="post-meta-divider">|</span>
<i class="fa fa-file-word-o"></i>
<span>295<span class="pc-show">字数</span></span>
</span>
</div>
</header>
<div class="post-body">
<p>Ekho(余音)是一个免费、开源的中文语音合成软件。它目前支持粤语、普通话(国语)、广东台山话、诏安客语、藏语、雅言(中国古代通用语)和韩语(试验中),英语则通过eSpeak或Festival间接实现。Ekho支持Linux、Windows和Android平台。</p>
<div class="post-button text-center">
<a class="btn" href="https://imarkofu.github.io/post/CentOS-ekho-TTS/" rel="contents">
阅读全文 »
</a>
</div>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</div>
</article>
<article class="post-list-box post box-shadow-wrapper">
<div class="article-wrapper bg-color">
<header class="post-header">
<h1 class="post-title">
<a class="post-title-link" href="https://imarkofu.github.io/post/algorithm-dynamic-programming/">
算法学习-动态规划
</a>
</h1>
<div class="post-meta">
<span class="meta-item pc-show">
<i class="fa fa-calendar-o"></i>
<span>发布于</span>
<span>2019-01-14</span>
<span class="post-meta-divider pc-show">|</span>
</span>
<span class="meta-item">
<i class="fa fa-folder-o"></i>
<span class="pc-show">分类于</span>
<a href="https://imarkofu.github.io/tag/0n80ESKHvQ/">
<span>算法</span>
</a>、
<a href="https://imarkofu.github.io/tag/4-Zd241g2e/">
<span>数据结构</span>
</a>、
<a href="https://imarkofu.github.io/tag/Tj5Ev9UDze/">
<span>动态规划</span>
</a>
</span>
<span class="post-meta-divider">|</span>
<span class="meta-item">
<i class="fa fa-clock-o"></i>
<span>4分钟</span>
</span>
<span class="meta-item">
<span class="post-meta-divider">|</span>
<i class="fa fa-file-word-o"></i>
<span>1023<span class="pc-show">字数</span></span>
</span>
</div>
</header>
<div class="post-body">
<p><strong>动态规划</strong>(英语:Dynamic programming,简称DP)是一种在数学、管理科学、计算机科学、经济学和生物信息学中使用的,通过把原问题分解为相对简单的子问题的方式求解复杂问题的方法。</p>
<p>动态规划常常适用于<strong>有重叠子问题</strong>和<strong>最优子结构性质</strong>的问题,动态规划方法所耗时间往往远少于朴素解法。</p>
<p>动态规划背后的基本思想非常简单。大致上,若要解一个给定问题,我们需要解其不同部分(即子问题),再根据子问题的解以得出原问题的解。</p>
<p>通常许多子问题非常相似,为此动态规划法试图仅仅解决每个子问题一次,从而减少计算量:一旦某个给定子问题的解已经算出,则将其记忆化存储,以便下次需要同一个子问题解之时直接查表。这种做法在重复子问题的数目关于输入的规模呈指数增长时特别有用。</p>
<div class="post-button text-center">
<a class="btn" href="https://imarkofu.github.io/post/algorithm-dynamic-programming/" rel="contents">
阅读全文 »
</a>
</div>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</div>
</article>
<article class="post-list-box post box-shadow-wrapper">
<div class="article-wrapper bg-color">
<header class="post-header">
<h1 class="post-title">
<a class="post-title-link" href="https://imarkofu.github.io/post/algorithm-greedy-algorithm/">
算法学习-贪心算法
</a>
</h1>
<div class="post-meta">
<span class="meta-item pc-show">
<i class="fa fa-calendar-o"></i>
<span>发布于</span>
<span>2019-01-03</span>
<span class="post-meta-divider pc-show">|</span>
</span>
<span class="meta-item">
<i class="fa fa-folder-o"></i>
<span class="pc-show">分类于</span>
<a href="https://imarkofu.github.io/tag/0n80ESKHvQ/">
<span>算法</span>
</a>、
<a href="https://imarkofu.github.io/tag/4-Zd241g2e/">
<span>数据结构</span>
</a>、
<a href="https://imarkofu.github.io/tag/IyGxpU62KW/">
<span>贪心</span>
</a>、
<a href="https://imarkofu.github.io/tag/yZy_FtK53C/">
<span>贪心算法</span>
</a>
</span>
<span class="post-meta-divider">|</span>
<span class="meta-item">
<i class="fa fa-clock-o"></i>
<span>2分钟</span>
</span>
<span class="meta-item">
<span class="post-meta-divider">|</span>
<i class="fa fa-file-word-o"></i>
<span>418<span class="pc-show">字数</span></span>
</span>
</div>
</header>
<div class="post-body">
<p>所谓贪心算法是指,在对问题求解时,总是做出在当前看来是最好的选择。也就是说,不从整体最优上加以考虑,他所做出的仅是在某种意义上的局部最优解。</p>
<p>贪心算法没有固定的算法框架,算法设计的关键是贪心策略的选择。必须注意的是,贪心算法不是对所有问题都能得到整体最优解,选择的贪心策略必须具备无后效性,即某个状态以后的过程不会影响以前的状态,只与当前状态有关。</p>
<p>所以对所采用的贪心策略一定要仔细分析其是否满足无后效性。</p>
<div class="post-button text-center">
<a class="btn" href="https://imarkofu.github.io/post/algorithm-greedy-algorithm/" rel="contents">
阅读全文 »
</a>
</div>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</div>
</article>
<article class="post-list-box post box-shadow-wrapper">
<div class="article-wrapper bg-color">
<header class="post-header">
<h1 class="post-title">
<a class="post-title-link" href="https://imarkofu.github.io/post/algorithm-recursion-and-division/">
算法学习-递归和分治
</a>
</h1>
<div class="post-meta">
<span class="meta-item pc-show">
<i class="fa fa-calendar-o"></i>
<span>发布于</span>
<span>2019-01-03</span>
<span class="post-meta-divider pc-show">|</span>
</span>
<span class="meta-item">
<i class="fa fa-folder-o"></i>
<span class="pc-show">分类于</span>
<a href="https://imarkofu.github.io/tag/0n80ESKHvQ/">
<span>算法</span>
</a>、
<a href="https://imarkofu.github.io/tag/4-Zd241g2e/">
<span>数据结构</span>
</a>、
<a href="https://imarkofu.github.io/tag/7RKy9sP4fu/">
<span>递归</span>
</a>、
<a href="https://imarkofu.github.io/tag/ZJqXQqA9UT/">
<span>分治</span>
</a>
</span>
<span class="post-meta-divider">|</span>
<span class="meta-item">
<i class="fa fa-clock-o"></i>
<span>3分钟</span>
</span>
<span class="meta-item">
<span class="post-meta-divider">|</span>
<i class="fa fa-file-word-o"></i>
<span>613<span class="pc-show">字数</span></span>
</span>
</div>
</header>
<div class="post-body">
<h1 id="递归">递归</h1>
<p>直接或者间接不断反复调用自身来达到解决问题的方法。要求原始问题可以分解为相同问题的子问题。</p>
<p><strong>先决条件</strong></p>
<ul>
<li>递归边界</li>
<li>自身调用</li>
</ul>
<div class="post-button text-center">
<a class="btn" href="https://imarkofu.github.io/post/algorithm-recursion-and-division/" rel="contents">
阅读全文 »
</a>
</div>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</div>
</article>
<div class="page bg-color">
<ul class="pagination-ul">
<li class="pagination-li pagination-active">
<a href="/page/../">
1
</a>
</li>