.


:




:

































 

 

 

 


. ..

 

 

1

 

, .

12

 

: 4209 . .

 

 

: ..

 

. 2013

 

.

#, .

 

 

1. . () ( 512 ). ( + ) . : . 512 . (. 1).

2. #. . 1. ( ) (C#).

3. (. 2) ( ). , , (, f1_1000_.txt). . . ( 3). . - . .

4. : ( , , , ( : 240 ), ).

5. , ( ).

5.1. , .

5.2. , ( Excel).


 

6. #, :

6.1. .

6.2. .

6.3. .

6.4. .

6.5. .

6.6. , .

6.7. ( ).

6.8. .

.

7. .

8. .

9.

 

 

1. . .

 

. . , . : . - 7 , 4 . , 4 4×1024=4096 . 512 , . :4096 : 512 =8. :

 
 
1.  

 
  ..
 
  C:\work\4209\Shilnikov_D
   
  0,0009765625
  0.00000095367431640625
   
   
  0.00390625
  (: 512 )  
  4
  11 2013 ., 12:32:11
  11 2013 ., 12:37:52
  11 2013 ., 12:43:33
 
 
 

 

2. #. . 1. ( ) (C#).

 

# , 1. Microsoft Visual Studio C# (MVS C#). MVS C# : → → Microsoft Visual Studio 2008. : File New→Project. Visual ++, , Visual #. , .. ConsoleApplication. , Finish.

, , , .

:

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.IO;

 

namespace Consol

{

class Program

{

static void Main(string[] args)

{

int i;

string str;

FileStream f1;

const int n = 71040;

f1 = new FileStream("Fl_1110_Shilnikov_D.txt", FileMode.Create);

f1.Close();

 

f1 = new FileStream("Fl_1110_Shilnikov_D.txt", FileMode.Open, FileAccess.Write);

StreamWriter fstr = new StreamWriter(f1);

str = "llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll";

Console.Write("Nagmite Enter");

Console.ReadLine();

for (i = 0; i < n; i++)

 

{ fstr.WriteLine(str); }

 

fstr.Close();

}

}

}

 

, , Fl_1110_Shilnikov_D.txt.

- :

 

 

 
 

 

 


3. (. 2) ( ). , , (, f1_1110_Shilnikov.txt). . . 3. . - . .

2.

 
f1 f2 f3 f4 f5 f6 f7
                  l

 

 

12 . . : , , , , :

: 45 368 201 216

: 19 644 379 136

, . , 1 4096 , : V=k*b.

 

1 : 1110 × 4096 = 4546560 ;

2 : 1310 × 4096 = 5365760 ;

3 : 1510 × 4096 = 6184960 ;

4 : 1710 × 4096 = 7004160 ;

5 : 1910 × 4096 = 488960 ;

6 : 2110 × 4096 = 8642560 ;

7 : 2310 × 4096 = 9461760 .

 

:

4546560 + 5365760 + 6184960 + 7004160 + 488960 + 8642560 + 9461760 =

49029120 . .. (19 644 379 136 <49 029 120), .

3:

 

3.

4096 - 64
  4209 ( ) , , , ,
f1 f1_1110_       4.3359375   4.3359375
   
   
f2 f2_1310_       5.1171875 5.1171875  
   
   
f3 f3_1510_       5.8984375 5.8984375  
   
   
f4 f4_1710_       6.6796875 6.6796875  
   
   
f5 f5_1910_       7.4609375 7.4609375  
   
   
f6 f6_2110_         8.2421875  
   
   
f7 f7_2310_       9.0234375 9.0234375  
   
   
        46.7578125 46.7578125  
   
   
C       ----    
 
 

 

:

:

:45 368 201 216

:19 644 379 136

: 45 368 201 216 + 19 644 379 136 = 65 012 580 352 .

, 100%.

 

: (19 644 379 136 / 65 012 580 352) × 100% =

0.302 100% = 30.2%

4. : ( , , , ( : 240 ), ).

 

, .

:

 

:

: fl_1110_Shilnikov_D.txt

: 23

: sys:\work\4209\Shilnikov_Daniil\

: 55

: 240 32 = 208

 

 

:

: f2_1310_Shilnikov_D.txt

: 23

: sys:\work\4209\Shilnikov_Daniil\

: 55

: 240 32 = 208

 

:

: f3_1510_Shilnikov_D.txt

: 23

: sys:\work\4209\Shilnikov_ Daniil \

: 55

: 240 32 = 208

 

:

: f4_1710_Shilnikov_D.txt

: 23

: sys:\work\4209\Shilnikov_ Daniil \

: 55

: 240 32 = 208

 

:

: f5_1910_Shilnikov_D.txt

: 23

: sys:\work\4209\Shilnikov_ Daniil \

: 55

: 240 32 = 208

 

:

: f6_2110_Shilnikov_D.txt

: 23

: sys:\work\4209\Shilnikov_Daniil\

: 55

: 240 32 = 208

 

:

: f7_2310_Shilnikov_D.txt

: 23

: sys:\work\4209\Shilnikov_ Daniil \

: 55

: 240 32 = 208

 

 


5. , ( ).

1. , .

2. , ( Excel).

 

5.1 , , . . <show.txt>.

:

 

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.IO;

 

namespace Consol

{

class Program

{

static void Main(string[] args)

{

FileInfo foutshow = new FileInfo("show.txt");

DateTime nown = new DateTime();

double tb = 0;

double te = 0;

 

int i;

string str;

FileStream f1;

const int n = 71040;

f1 = new FileStream("Fl_1110_Shilnikov_D.txt", FileMode.Create);

f1.Close();

 

f1 = new FileStream("Fl_1120_Shilnikov_D.txt", FileMode.Open, FileAccess.Write);

StreamWriter fstr = new StreamWriter(f1);

str = "llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll";

Console.Write("Nagmite Enter");

Console.ReadLine();

 

nown = DateTime.Now;

tb = nown.Hour * 3600 + nown.Minute * 60 + nown.MilliSecond;

 

for (i = 0; i < n; i++)

 

{ fstr.WriteLine(str); }

 

nown = DateTime.Now;

te = nown.Hour * 3600 + nown.Minute * 60 + nown.MilliSecond;

 

 

fstr.Close();

 

StreamWriter f = foutshow.CreateText();

f.WriteLine

(string.Format("\"{0:000}\";\"{1:000}\";\"{2:0000}\"", tb, te, te - tb));

f.Close();

 

}

 

}

 

}

 

.

: t=T/c, t , T , .

:

 

1- : 47 / 71040=0.00065 ;

2- : 62 / 83840=0.00073 ;

3- : 70 / 96640=0.00072 c;

4- : 78 / 109440=0.0007 c;

5- : 93 / 122240=0.00075 c;

6- : 94 / 135040=0.00069 c;

7- : 110 / 147840=0.00074 c.

 

: V=T/k, V , T , k .

:

 

1- : 47 / 1110=0.0419 ;

2- : 62 / 1310=0.0469 ;

3- : 70 / 1510=0.0460 c;

4- : 78 / 1710=0.0453 c;

5- : 93 / 1910=0.0484 c;

6- : 94 / 2110=0.0443 c;

7- : 110 / 2310=0.047 c.

 

 

4:

 

4.

Fl_1110_Shilnikov_D.txt   0.00065 0.0419
F2_1310_Shilnikov_D.txt   0.00073 0.0469
F3_1510_Shilnikov_D.txt   0.00072 0.0460
F4_1710_Shilnikov_D.txt   0.0007 0.0453 c
F5_1910_Shilnikov_D.txt   0.00075 0.0484
F6_2110_Shilnikov_D.txt   0.00069 0.0443
F7_2310_Shilnikov_D.txt   0.00074 0.047 c

 

5.2. , , Excel . , , .1:

 

. 1.

.

 

, Excel . , , .2:

 

. 2.

.

 

6. #, :

1. .

2. .

3. .

4. .

5. .

6. , .

7. ( ).

8. .

, #, :

1. .

2. .

3. .

4. .

5. .

6. , .

:

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.IO;

namespace

{

class Program

{

static void Main(string[] args)

{

int i, k = 0;

int tb = 0;

int te = 0;

string s = null;

int q = 0;

int L = 0;

int l = 0;

int a = 0;

FileStream f1;

FileInfo fout = new FileInfo(".txt");

StreamWriter fo = fout.CreateText();

DateTime nown = new DateTime();

nown = DateTime.Now;

tb = nown.Hour * 3600 + nown.Minute * 60 + nown.Second;

f1 = new FileStream("Fl_1110_Shilnikov_D.txt", FileMode.Open);

do

{

 

i = f1.ReadByte();

if (i!= -1)

 

 

k++;

}

while (i!= -1);

f1.Close();

// Console.ReadLine();

StreamReader fi = new StreamReader("Fl_1110_Shilnikov_D.txt", Encoding.GetEncoding(1251));

 

 

while ((s = fi.ReadLine())!= null)

{

l = s.Length;

L = L + l + 2;

q++;

fo.WriteLine(string.Format("\"{0:000}\";\"{1:0000}\"", a, l));

fo.WriteLine(string.Format("\"{0}", s));

a = L;

}

fo.WriteLine(string.Format(" : {0}", q));

fo.WriteLine(string.Format(" : {0}", k - (q * 2)));

fi.Close();

nown = DateTime.Now;

te = nown.Hour * 3600 + nown.Minute * 60 + nown.Second;

fo.WriteLine

(string.Format("\" :{0:00000}\";\" :{1:00000}\";\" :{2:000000}\"", tb, te, te - tb));

fo.Close();

 

}

}

}

 

, , , . , .

, 4, :

 

4. .

() ()
Fl_1110_Shilnikov_D.txt   4444160   0,007659
F2_1310_Shilnikov_D.txt   5237760   0,008902
F3_1510_Shilnikov_D.txt   6031360   0,008409
F4_1710_Shilnikov_D.txt   6824960   0,01032
F5_1910_Shilnikov_D.txt   7635160   0,008667
F6_2110_Shilnikov_D.txt   8413960   0,008063
F7_2310_Shilnikov_D.txt   9205760   0,007658

 

, .

: t=T/c, t , T , .

 

:

1- : 549 / 71040=0.00014 ;

2- : 752 / 83840=0.00016 ;

3- : 818 / 96640=0.00018 c;

4- : 1136 / 109440=0.0002 c;

5- : 1065 / 122240=0.0002 c;

6- : 1094 / 135040=0.00021 c;

7- : 1137 / 147840=0.00021 c.

 

, Excel, .3:

 

. 3.

.

 

, :

, .



<== | ==>
|
:


: 2016-09-03; !; : 341 |


:

:

.
==> ...

1700 - | 1528 -


© 2015-2024 lektsii.org - -

: 0.182 .