COMPUTER-READABLE RECORDING MEDIUM STORING GENERATION PROGRAM, GENERATION METHOD, AND INFORMATION PROCESSING APPARATUS
20220360436 · 2022-11-10
Assignee
Inventors
Cpc classification
H04L9/3239
ELECTRICITY
H04L9/0858
ELECTRICITY
International classification
Abstract
A non-transitory computer-readable recording medium stores a generation program for causing a computer to execute processing including: acquiring a converted character string from a character string to be processed in predetermined processing that includes hashing the character string to be processed; generating a figure that corresponds to the character string to be processed by representing an order of characters and a value of a character in the converted character string as an angle and a size in polar coordinates; and outputting the figure.
Claims
1. A non-transitory computer-readable recording medium storing a generation program for causing a computer to execute processing comprising: acquiring a converted character string from a character string to be processed in predetermined processing that includes hashing the character string to be processed; generating a figure that corresponds to the character string to be processed by representing an order of characters and a value of a character in the converted character string as an angle and a size in polar coordinates; and outputting the figure.
2. The non-transitory computer-readable recording medium storing the generation program according to claim 1, wherein the acquiring processing includes adding an offset value to a value represented by a character element of a hash value obtained by hashing the character string to be processed in the predetermined processing and generating the converted character string.
3. The non-transitory computer-readable recording medium storing the generation program according to claim 1, wherein the generating processing includes generating a one-side figure in one side with a vertical axis of the polar coordinates as a boundary on the basis of the converted character string and folding the one-side figure along the vertical axis so as to generate the figure that is symmetrical.
4. The non-transitory computer-readable recording medium storing the generation program according to claim 1, wherein the generating processing includes generating a plurality of character strings by dividing the converted character string and generating a plurality of figures that corresponds to the character string to be processed on the basis of the plurality of character strings.
5. The non-transitory computer-readable recording medium storing the generation program according to claim 1, wherein the generating processing includes generating a figure that corresponds to the character string to be processed on the basis of a character string obtained as reducing character elements from the converted character string.
6. The non-transitory computer-readable recording medium storing the generation program according to claim 1, wherein the generating processing includes determining a color by using at least a part of a character string of the converted character string as a color code and arranging the determined color in the figure.
7. A generation method comprising: acquiring, by a computer, a converted character string from a character string to be processed in predetermined processing that includes hashing the character string to be processed; generating a figure that corresponds to the character string to be processed by representing an order of characters and a value of a character in the converted character string as an angle and a size in polar coordinates; and outputting the figure.
8. An information processing apparatus comprising: a memory; and a processor coupled to the memory and configured to: acquire a converted character string from a character string to be processed in predetermined processing that includes hashing the character string to be processed; generate a figure that corresponds to the character string to be processed by representing an order of characters and a value of a character in the converted character string as an angle and a size in polar coordinates; and output the figure.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0009]
[0010]
[0011]
[0012]
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
DESCRIPTION OF EMBODIMENTS
[0024] However, when a character string becomes long, it tends to be difficult to identify whether or not the character string is correct. As a result, for example, there is a case where identification takes time or erroneous identification is performed. Therefore, it is desired to provide a technique for facilitating identification whether or not the character string is correct even in a case where a multiple character string is used.
[0025] In one aspect, an object of the embodiment is to facilitate identification of a character string.
[0026] Hereinafter, several embodiments will be described in detail with reference to the drawings. Note that corresponding elements in a plurality of drawings are denoted with the same reference numeral.
[0027]
[0028] As a method for facilitating identification of the character string, for example, it is considered to convert the character string into a binary bit string and display bits as a bitmap expressed in black and white.
[0029] Note that, the multiple of the multiple character string may be, for example, the number of characters of which a difference is difficult for a human to identify, and in an example, a character string having a predetermined number of characters or more may be regarded as a multiple character string. Furthermore, an application target of the embodiment is not limited to the multiple character string, and may also be applied to a plural character string having several characters. Hereinafter, the embodiment will be described using a character string as a term including the multiple character string and the plural character string. Hereinafter, the identification of the character string according to the embodiment will be further described.
[0030]
[0031] Then, in the embodiment, the control unit 201 converts a character string into a graph with polar coordinates so as to convert the character string into a figure.
[0032]
[0033] In this case, the x-axis coordinate of the n-th character can be expressed by the following formula 1.
x=An×sin(θn) Expression 1
[0034] Furthermore, the y-axis coordinate of the n-th character can be expressed by the following formula 2.
y=An×cos(θn) Expression 2
[0035] Then, for example, by connecting each point with a straight line according to a character order in the character string, it is possible to convert the character string into a figure using the polar coordinates. Note that the axes, the positive angle direction, or the like in
[0036]
[0037] Furthermore, the inventor of the embodiment has found that, because the entire figure gives an impression of a needle-like shape when the figure represented in the polar coordinates is close to the center of the polar coordinates, there is a possibility that ease of recognizing other features of the shape is impaired. Therefore, in one embodiment, the control unit 201 may give a predetermined value to a value of a character in a target character string as an offset. Note that, in an example, there is a case where the predetermined value to be added as an offset is referred to as an offset value.
[0038]
[0039] Furthermore, for example, it has been known that humans tend to strongly recognize a symmetrical figure. For example, in the factor of symmetry that is one of seven elements of the gestalt factors (law of pragnanz), it is described that a symmetrical figure tends to be easily recognized as a set. Furthermore, for example, in the Rorschach test in psychology, symmetrical patterns are used. Therefore, in one embodiment, the control unit 201 may generate a symmetrical figure when the character string is converted into a figure using the polar coordinates.
[0040]
[0041] As described above, because the feature of the character string can be recognized as the figure by converting the character string into the figure represented with the polar coordinates, this facilitates to identify the character string. Furthermore, for example, by adding the offset to the value of the character string or generating the symmetrical figure, the ease of the recognition of the figure can be improved.
[0042] However, even if the character string is converted into the figure represented with the polar coordinates in order to improve the ease of the recognition, in a case where an actual difference between character strings is small, it may be difficult to perform identification.
[0043]
[0044] Furthermore,
[0045] For example, in
[0046] Note that, in the example in
[0047] In the above embodiment, one figure is generated for the character string to be identified. However, the embodiment is not limited to this. For example, when the number of characters in the character string used to generate the figure increases, the number of corners of the figure increases, and there is a case where the figure is complicated. As a result, there is a case where it is difficult for a user to remember or identify the figure. Therefore, for example, in the another embodiment, the control unit 201 may also generate a plurality of figures for the character string to be identified. As a result, it is possible to reduce the number of characters used to express one figure and to simplify the figure and facilitate recognition of the figure.
[0048]
[0049]
[0050] Furthermore, for example, in the embodiment in a case where security is not required or the like, the control unit 201 may also reduce the number of character elements according to predetermined processing from the character string used to generate the figure such as the hash value of the character string to be identified and use the character string to generate the figure.
[0051]
[0052] As described above, the control unit 201 can simplify the shape of the figure by generating the figure as reducing the number of character elements in the character string. As a result, it is possible to generate a figure that is easily recognized by the user.
[0053] Furthermore, in yet another example, the control unit 201 may convert at least a part of a character string used to generate a figure into a color code, express the character string as a color, and arrange the color in the figure.
[0054]
[0055] As described above, according to the embodiment, the identification of the character string is facilitated.
[0056]
[0057]
[0058]
[0059]
[0060] Furthermore, for example, the embodiment can be used in a case where it is desired to determine whether or not the character strings match and to display the result.
[0061]
[0062] Subsequently, an operation flow for generating a figure corresponding to a character string according to the embodiment described above will be described.
[0063] In step 1401 (hereinafter, step is described as “5”, for example, describe as S1401), the control unit 201 acquires a character string to be processed. For example, the control unit 201 may read the character string to be processed from the storage unit 202.
[0064] In S1402, for example, the control unit 201 acquires a character string converted from the character string to be processed through predetermined processing including acquisition of a hash value corresponding to the character string to be processed. For example, the control unit 201 may acquire the hash value corresponding to the character string to be processed as the converted character string by multiplying the character string to be processed by a hash function in the predetermined processing. Furthermore, as described with reference to
[0065] In S1403, for example, the control unit 201 generates a figure corresponding to the character string to be processed by representing an order of characters or a value of the character included in the converted character string corresponding to the character string to be processed as an angle and a size in the polar coordinates. For example, as illustrated in
[0066] Furthermore, when generating a figure, the control unit 201 may generate a one-side figure in one of ranges of a left and a right regions with the vertical axis of the polar coordinates as a boundary and laterally fold the figure along the vertical axis so as to generate a symmetrical figure. As a result, it is possible to generate a figure having a shape that is easily recognized by humans.
[0067] Moreover, in another embodiment, the control unit 201 may also generate a plurality of figures from the converted character string when the figure is generated. For example, the control unit 201 may also generate a plurality of figures corresponding to the character string to be processed by dividing the converted character string so as to generate a plurality of character strings and generating a figure for each of the divided character strings.
[0068] Furthermore, when generating the figure, the control unit 201 may also generate the figure corresponding to the character string to be processed on the basis of the character string that is obtained as reducing the character elements, as described with reference to
[0069] In S1404, the control unit 201 arranges a color in the figure. For example, as illustrated in
[0070] In S1405, the control unit 201 outputs the generated figure, and the operation flow ends. For example, the control unit 201 may output the generated figure to a display device connected to the information processing apparatus 200 and display the figure on a display screen of the display device. Note that, in another embodiment, in the processing in S1405, the control unit 201 may also output the generated figure to the storage unit 202 or the like and save the figure or may transmit the generated figure to another device connected to the information processing apparatus 200.
[0071] For example, as described with reference to
[0072] Furthermore, in the embodiment described above, the figure is generated on the basis of the hash value of the character string. Therefore, for example, even the character strings have a small difference, a difference between the generated figures is easily generated, and it is easy to distinguish the figures.
[0073] Furthermore, in the embodiment described above, when the figure is generated, the value of the offset is added to the character string of the hash value. As a result, it is possible to prevent the figure from giving a needle-like impression, and facilitate to recognize the shape of the figure.
[0074] Furthermore, in the embodiment described above, when the figure is generated, a one-side figure is generated in one of ranges of the left and the right regions with respect to the vertical axis of the polar coordinates, and the one-side figure is laterally folded along the vertical axis so as to generate a symmetrical figure. As a result, it is possible to generate a figure having a shape that is easily recognized by humans.
[0075] Moreover, in the embodiment described above, the control unit 201 may also generate the plurality of figures from the character string of the hash value when the figure is generated. Furthermore, when the figure is generated, the control unit 201 may also generate the figure from the character string obtained as reducing the number of character elements on the basis of the character string of the hash value. As a result, the shape of each figure can be simplified. Therefore, the user can easily recognize and identify the figure.
[0076] Furthermore, in the embodiment, the color may be determined using a part of the character string of the hash value as a color code, and the color may be arranged in the figure. As a result, the figure can be identified on the basis of the color. Therefore, the user can easily recognize and identify the figure.
[0077] Although the embodiment has been described above, the embodiment is not limited to this. For example, the operation flows described above are exemplary, and the embodiment is not limited to this. If possible, the operation flows may also be executed by changing the order of processing or may also additionally include further processing, or a part of processing may also be omitted. For example, in a case where a color is not arranged in a figure, it is not needed to execute the processing in S1404 in
[0078] Note that, in the above embodiment, for example, the control unit 201 operates as the acquisition unit 211 in the processing in S1402. For example, the control unit 201 generates the converted character string for the character string to be processed in the predetermined processing executed in S1402. Note that the converted character string may be, for example, a hash value or may also be a character string obtained by adding the offset value to the value represented by the character element of the hash value. Furthermore, in the processing in S1403 and S1404, the control unit 201 operates, for example, as the generation unit 212. For example, the control unit 201 may generate the figure from the converted character string in the processing in S1403 and S1404 and arrange the color in the figure. In the processing in S1405, the control unit 201 operates, for example, as the output unit 213. For example, the control unit 201 may output the figure generated in the processing in S1405.
[0079]
[0080] The processor 1501 may also be, for example, a single processor, a multiprocessor, or a multicore processor. The processor 1501 uses the memory 1502 to execute, for example, a program describing procedures of the operation flows described above, so that some or all of the functions of each unit described above are provided. For example, the processor 1501 of the information processing apparatus 200 reads and executes the program stored in the storage device 1503 so as to operate as the acquisition unit 211, the generation unit 212, and the output unit 213.
[0081] The memory 1502 is, for example, a semiconductor memory, and may include a RAM region and a ROM region. The storage device 1503 is, for example, a semiconductor memory such as a hard disk or a flash memory, or an external storage device. Note that the RAM is an abbreviation for random access memory. In addition, the ROM is an abbreviation for read only memory.
[0082] The reading device 1504 accesses a removable storage medium 1505 in accordance with an instruction from the processor 1501. The removable storage medium 1505 is implemented by, for example, a semiconductor device, a medium to and from which information is input and output by magnetic action, a medium to and from which information is input and output by optical action, or the like. Note that the semiconductor device is, for example, a universal serial bus (USB) memory. Furthermore, the medium to and from which information is input and output by magnetic action is, for example, a magnetic disk. The medium to and from which information is input and output by optical action is, for example, a CD-ROM, a DVD, or a Blu-ray Disc (Blu-ray is a registered trademark), or the like. The CD is an abbreviation for compact disc. The DVD is an abbreviation for digital versatile disk.
[0083] The storage unit 202 includes, for example, the memory 1502, the storage device 1503, and the removable storage medium 1505. For example, the storage device 1503 of the information processing apparatus 200 stores information used for the figure generation processing according to the embodiment, such as the character string to be processed.
[0084] The communication interface 1506 communicates with another device according to an instruction from the processor 1501. For example, the information processing apparatus 200 may also receive information regarding a character string from another device via the communication interface 1506 and generate a figure on the basis of the received information regarding the character string so as to provide the figure to the another device.
[0085] The input/output interface 1507 is, for example, an interface between an input device and an output device. The input device is, for example, a device such as a keyboard, a mouse, or a touch panel that receives an instruction from a user. The output device is, for example, a display device such as a display or an audio device such as a speaker.
[0086] Each program according to the embodiment is provided to the information processing apparatus 200 in the following forms, for example.
[0087] (1) Installed on the storage device 1503 in advance.
[0088] (2) Provided by the removable storage medium 1505.
[0089] (3) Provided from a server such as a program server.
[0090] Note that the hardware configuration of the computer 1500 for implementing the information processing apparatus 200 described with reference to
[0091] Several embodiments have been described above. However, the embodiment is not limited to the embodiments described above, and it should be understood that the embodiment includes various modifications and alternatives of the embodiments described above. For example, it would be understood that various embodiments may be embodied by modifying components without departing from the spirit and scope of the embodiments. Furthermore, it would be understood that various embodiments may be implemented by appropriately combining a plurality of components disclosed in the embodiments described above. Moreover, a person skilled in the art would understand that various embodiments may be implemented by deleting some components from all the components indicated in the embodiments or by adding some components to the components indicated in the embodiments.
[0092] All examples and conditional language provided herein are intended for the pedagogical purposes of aiding the reader in understanding the invention and the concepts contributed by the inventor to further the art, and are not to be construed as limitations to such specifically recited examples and conditions, nor does the organization of such examples in the specification relate to a showing of the superiority and inferiority of the invention. Although one or more embodiments of the present invention have been described in detail, it should be understood that the various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the invention.